Recent Changes - Search:

Basics

Languages

Tools

OS

Resources

PmWiki

pmwiki.org

edit SideBar

Function Inputs

Sometimes, a function will expect to get the name of a file, which it will then open and work on the contents. The best example is probably grep. If you want to use a given function, with options, on the content of a variable instead, you can do it with:

function options <<< $var

ex.: grep whatYouAreLookingFor <<< $variableName
Edit - History - Print - Recent Changes - Search
Page last modified on August 07, 2015, at 12:56 PM