jerryp@tektools.UUCP (Jerry Peek) (03/06/86)
I'm looking for a program that reads through a shell script and extracts the
names of all commands that the shell might run (call).
For instance, if you fed the following shell script to it:
for foo in *
do
test -r $foo && pr $foo | lpr
(echo printed $foo at `date`; ls -l $foo; echo ======) > logfile
done
the program I'm looking for would print something like this:
test
pr
lpr
echo
date
ls
echo
Anyone have such a beast? Thanks...
--Jerry Peek, Tektronix, Inc.
US Mail: MS 74-222, P.O. Box 500, Beaverton, OR 97077
uucp: {allegra,decvax,hplabs,ihnp4,ucbvax}!tektronix!tektools!jerryp
CS,ARPAnet: jerryp%tektools@tektronix.csnet
Phone: +1 503 627-1603