if [ $# -ne 2 ]; then echo "The script needs the file with the locations of the planet files from each user as first parameter and the output file as second parameter" exit 1 fi if [ -f $2 ];then rm -f $2 fi while read line; do if ! grep -q "^face" $line ;then echo $line | awk -F "/" '{ print $4"@fedoraproject.org" }' >> $2 echo $line >> tempGotchi fi done < $1 #delete the users with no gotchi from the gotchi file cat $1 >> tempGotchi sort tempGotchi | uniq -u > $1 rm -f tempGotchi exit 0