sjau
17th May 2006, 23:53
Hiya
I have a little code snippet like this:
LINK=`/bin/grep -f http://www.spamcop.net/sc?id= $FILENAME`
echo $LINK
LINK=`/bin/fgrep http://www.spamcop.net/sc?id= $FILENAME`
echo $LINK
LINK=`/bin/ls $FILENAME`
echo $LINK
The output is this:
grep: http://www.spamcop.net/sc?id=: No such file or directory
/bin/fgrep: line 2: exec: grep: not found
1147891663.9720_2.t390.greatnet.de:2,ST
grep: http://www.spamcop.net/sc?id=: No such file or directory
/bin/fgrep: line 2: exec: grep: not found
1147896741.16696_2.t390.greatnet.de:2,ST
Why do grep and fgrep not work but the ls does?
I have a little code snippet like this:
LINK=`/bin/grep -f http://www.spamcop.net/sc?id= $FILENAME`
echo $LINK
LINK=`/bin/fgrep http://www.spamcop.net/sc?id= $FILENAME`
echo $LINK
LINK=`/bin/ls $FILENAME`
echo $LINK
The output is this:
grep: http://www.spamcop.net/sc?id=: No such file or directory
/bin/fgrep: line 2: exec: grep: not found
1147891663.9720_2.t390.greatnet.de:2,ST
grep: http://www.spamcop.net/sc?id=: No such file or directory
/bin/fgrep: line 2: exec: grep: not found
1147896741.16696_2.t390.greatnet.de:2,ST
Why do grep and fgrep not work but the ls does?