Page is a not externally linkable
SeanW - 5:59 am on Mar 13, 2004 (gmt 0)
The first "babes.txt" is what you're checking, the second is what you're appending to. So, if you wanted to check newbabes.txt and append to babes.txt, you'd have egrep -q "^$1$" newbabes.txt ¦¦ echo "$1" >> babes.txt Why you'd need to do that, I'm not sure, your original question wanted the same file, this solution doesn't need an intermediate file. Sean
egrep -q "^$1$" babes.txt ¦¦ echo "$1" >> babes.txt