2 Synthesis‎ > ‎Computing‎ > ‎Linux‎ > ‎Shell‎ > ‎


This is about finding stuff.
To find a file with words in it;

grep -r 'tragedy and hope' /home/tom/Desktop/_Delta

find / -name 'gtk.h'

grep -r 'opportunity' '/home/tom/Tasks/0 Communications/Letters'

grep -r 'Woolworth' /home

A short script;

for file in $(ls); do
echo $file
cat $file | grep PATTERN

© Tom de Havas 2011. The information under this section is my own work it may be reproduced without modification but must include this notice.