To search a file for lines which match a given regular expression.
The grep function in Perl is the command-line function which can be used to search in a data set for lines which match a regular expression. The grep function is essentially a tool that can be used to search for particular information within the data.
With function system or popen.
To search a file for lines which match a given regular expression.
Use the "-i" argument See 'man grep' for more information
Grep is: Global regular expression Parser
The man command of the Linux operating system is the system's documentation pager. Each page argument given to man is normally the name of a program, utility or function. For example, to see the reference manual of the grep program: man grep
'grep' searches a file for lines which match a given regular expression.
grep '\<h.*o\>'
grep filename "http:" assuming that the URL's you want to find being in http.
grep clients Mercury
I'm not sure why you would want to use 'grep' on a string - a string is typically a single line, and grep is used to find matches in one or more files. If the string is very long, say 32000 characters or so, you could take the string and echo it or cat it thru grep, but again, if there is a match, the entire string would be print anyway.
The cast of Grep - 2009 includes: Rasmus Dahl as Sigve Espen Enger John Kristian Hilmo as Tor