To find a word in a directory lets say err
ls -Rl | grep ^-r | awk '{print $10}' |xargs cat | grep -w import
or
ls -Rl | grep ^-r | awk '{print $10}' |xargs cat | grep '\bimport\b'
ls -Rl | grep ^-r | awk '{print $10}' |xargs cat | grep -w import
or
ls -Rl | grep ^-r | awk '{print $10}' |xargs cat | grep '\bimport\b'
No comments:
Post a Comment