Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


grep_tricks

grep tricks

The below command:

grep "G     " du.info.20190103a.txt

Is produced by typing:

grep "G CTRL+V+TAB" du.info.20190103a.txt

Find all files in a directory having a line beginning with Weather and dedupe file matches:

find . -type f -name '*appended*' -exec grep -l '^Weather' {} +
grep_tricks.txt · Last modified: by juckins