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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -