Tuesday, August 7, 2007

Using grep with find

This is how you can use find to first restrict to all .r files and then use grep on them

find . -name "*.r" -exec grep "rho" '{}' \; -print

Using grep with find

This is how you can use find to first restrict to all .r files and then use grep on them


find . -name "*.r" -exec grep "rho" '{}' \; -print