> OK. Here's my new code: > > #!/bin/bash > > while read LINE > do > whois $LINE | grep 'abuse' &> /dev/null > if [$? -ne 0]; then > echo "$LINE" >> noabuse.txt > fi > done < iplist > > Here's the output: > > [EMAIL PROTECTED] ~/.maildir/.SPAM/cur $ ./process.sh > ./process.sh: line 6: [1: command not found > ./process.sh: line 6: [1: command not found > ./process.sh: line 6: [1: command not found > Interrupted by signal 2...
Check out the section "If statements" http://www.gentoo.org/doc/en/articles/bash-by-example-p1.xml Regards, Richard Broersma Jr. -- gentoo-user@gentoo.org mailing list