Grep

From My Mnemonic Rhyme
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' ./*