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
Post a Comment