answersLogoWhite

0

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.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Which utility would you use to find a string in a text file?

Use the 'grep' command.


What command would you use to locate occurrences of a particular character string in files?

grep


What utility is used to search for a particular string within a file or group of files in linux?

Grep


In unix command to search files for lines that match a particular string pattern given?

Use the 'grep' family of commands to search for string pattern matches in multiple files.


What is grep syntax to make grep not be case sensitive?

Use the "-i" argument See 'man grep' for more information


What does grep stand for?

Grep is: Global regular expression Parser


What is grep command?

'grep' searches a file for lines which match a given regular expression.


Using grep command search the word starting with 'h' and ending with 'o'?

grep '\<h.*o\>'


Is the value 3 a string variable?

No, it is an integer. You can save an integer value to a string variable but, in this case the value is explicitly stated to be 3.


What is the value of an alembic Excel 5 string bass?

what is the value of an alembic excel 5 string bass


How can I filter URL's from a file using grep?

grep filename "http:" assuming that the URL's you want to find being in http.


What is grep in Unix?

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.