Next | Welcome to my ~/bin | 65 |
Why this?
find . -type f | xargs grep pattern
Why not this?
find . | xargs grep pattern
This is why:
grep: .: Is a directory grep: ./Performance: Is a directory grep: ./Performance/code: Is a directory grep: ./Performance/code/perldoc: Is a directory grep: ./Performance/code/perldoc/lib: Is a directory grep: ./Performance/code/perldoc/lib/Devel: Is a directory grep: ./Performance/notes: Is a directory grep: ./Performance/notes/dumbassery: Is a directory
Grrr.
Next | Menu | Copyright © 2005 M. J. Dominus |