ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/scripts/tfind
Revision: 24
Committed: Tue Jul 26 21:46:39 2011 UTC (8 years, 1 month ago) by gpertea
File size: 440 byte(s)
Log Message:
Line File contents
1 #!/bin/tcsh -f
2 if ($# == 0) then
3 echo "Usage example:"
4 echo ' tfind "*.java" "new Panel" [<other grep options>]'
5 echo "will recursively search all *.java files starting"
6 echo "from current directory, containing the text 'new Panel'"
7 exit 1
8 endif
9
10 set filemask = "$1"
11 set text = "$2"
12 shift
13 shift
14 #echo "filemask=${filemask}"
15 #echo "text=${text}"
16 (find . -name "${filemask}" | xargs grep -s "${text}" $* > /dev/tty) >& /dev/null

Properties

Name Value
svn:executable *