answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you grep out a value in a string?
Write your answer...
Submit
Still have questions?
magnify glass
imp