[geeks] Programming question.
Bill Bradford
mrbill at mrbill.net
Mon Apr 1 20:22:00 CST 2002
On Mon, Apr 01, 2002 at 09:00:10PM -0500, Brian Hechinger wrote:
> for blah in `cat fileA;do grep -v $blah fileB;done
> for blah in `cat fileB;do grep -v $blah fileA;done
Yes, but grep -v gives you EVERYTHING in the file that doesent
match $blah; so you're going to get multiple copies of stuff in fileB
from the output of:
> for blah in `cat fileA;do grep -v $blah fileB;done
Same for the second line.
Must be a way in Perl to compare the two arrays (once I read the
files into said arrays). Hrm.
Bill
--
Bill Bradford
mrbill at mrbill.net
Austin, TX
More information about the geeks
mailing list