1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/bin/bash
if [ $# -eq 0 ]
then
echo "
Find from the current working directory all files containing the classes Arg
Glob OneKey Pipe ServerSocket SocketBase User or Xpointer
Run this script with any argument to obtain a list of filenames only.
Press Enter to continue and search for files or ^C to abort"
read
else
OPT=-l
fi
/bin/grep -E $OPT \
'\b(Arg|Glob|OneKey|Pipe|ServerSocket|SocketBase|User|Xpointer)\b'\
`/usr/bin/find . -type f \
-exec /usr/bin/perl -e 'print "{}\n" if -T "{}";' \;`
|