Bash script
Scott Haneda
lists at newgeo.com
Thu Jul 8 18:33:41 PDT 2004
For some reason this is not working, If I run it alone, like so:
tr "\r" "\n" < /Applications/EIMS/Filters/STF.log | grep 89
I get hits, if I run it as a shell script
stfgrep 89 I get nothing.
#!/bin/bash
if [ "$1" = "" ]; then
echo "Enter in something to search on"
exit 0
fi
tr "\r" "\n" < /Applications/EIMS/Filters/STF.log | grep "$1"
This is more or less my first attempt at passing a argument to a script, any
help is appreciated.
--
-------------------------------------------------------------
Scott Haneda Tel: 415.898.2602
http://www.newgeo.com Fax: 313.557.5052
scott at newgeo.com Novato, CA U.S.A.
More information about the X-Unix
mailing list