Grep: Difference between revisions

From My Mnemonic Rhyme
Jump to navigation Jump to search
>Homaar
No edit summary
 
(No difference)

Latest revision as of 05:34, 21 February 2020

grep without spaces and comment lines

cat sip.conf | grep -v ";" | egrep ^[^#]

Only output filename

grep -iRl "pattern" folder

grep recursively for fixed string in current folder

grep -rF 'String' ./*