pipe - How to grep copied content -


i have content (say paragraph or hundred odd lines book - have newlines) have copied. how grep them? mean there utility can echo content output can fed grep command through pipe?

thanks.

where content? if in file 'foo' try

grep -e whateveryouarelookingfor foo 

if in bash variable 'bar' try

echo "${bar}" | grep -e whateveryouarelookingfor 

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -