grep filename "http:"
assuming that the URL's you want to find being in http.
'grep' searches a file for lines which match a given regular expression.
It depends on system to system. Basically you can find that out by looking at the file "/etc/passwd" You can filter out the username you want to check using "cat /etc/passwd | grep username"
grep '\<h.*o\>'
grep clients Mercury
To search a file for lines which match a given regular expression.
Grep is a command line application that is used to search a file or files and extract data from it/them according to a pattern or filter if you prefer. Grep stands for global regular-expression. There are many versions of grep available and regular expressions (for pattern matching) are available in most modern scripting languages such as ruby, python, perl, php, vb, etc. Grep, ngrep, egrep, etc. are available for multiple platforms including windows. They are well documented and can be downloaded for free.
I think you mean the regular expression tool "grep".
To search a file for lines which match a given regular expression.
Use the 'grep' command.
With function system or popen.
Use the > to redirect the output to a file. This will however override the existing content of the file. Use >> if you want to append the result.
Grep