Linux.com

recursive find/fgrep

Posted by: Administrator on December 14, 2005 08:25 AM
alias ff="find . -name \!:1 -exec fgrep -Hn \!:2 '{}' \;"


try> ff \*.php some_function


displays path and file, line number, and string matched

#

Return to CLI Magic: Daily aliases