Try these two out.
================================================================
NO MORE LONG FIND COMMANDS
Tired of typing long "find" commands?...
You can use the following script to save keystrokes :
When run with one argument, searches the file all the way down the
working directory.
If run with 2 arguments, the first one is assumed to be the start point.
Don't forget to quote wildcard filenames.
------------- SCRIPT STARTS HERE ------------------------
#!/bin/csh
# Script : ff (file find)
# Author : Can Ugur Ayfer ([EMAIL PROTECTED](
# Date : July 1995
# Usage : ff myfile or
# ff /home/cayfer myfile or
# ff "my*"
#
if ("$#argv" == 1) then
find . -name "$argv[1]" -print
endif
if ("$#argv" == 2) then
find "$argv[1]" -name "$argv[2]" -print
endif
if ("$#argv" < 1 || "$#argv" > 2) then
echo "Error..."
echo 'usage ff [ path] "name*" '
echo 'usage ff [ path] "*name" '
endif
===============================================================================
RECURSIVE GREP
Here is a nasty One-Liner:
Did you wish you could grep through files recursively
down subdirectories:
find . -type f -exec grep -l "foo" {} \\; -exec grep -n "foo" {} \\;
-exec echo " " \\;
Or another version that was submitted is:
find . -type f -print | xargs grep foo