Grep

From My Mnemonic Rhyme
Revision as of 05:34, 21 February 2020 by >Homaar
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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' ./*