Appreciate advice on following:
INPUT_FILE
102
103
109
DATA_FILE
102
109
104
106
for i in `cat INPUT_FILE`
do
grep -v $i DATA_FILE >> FILE_WITH_NO_INPUT_FILE_NOS # ie contains 104
and 106
done
Problem with script is that it loops for each input value 3 times and gives
an appended file of following:
109
104
106
102
109
104
106
102
104
106
Input file can have upto 800 values so I cant use egrep -v
'102|103|109|...' and run one time on data file data file can be up 1000
lines
Allso can't sort -u as from each loop of for there would be an entry that
was not it would incude entries ie grep -v 102 would append 109 104 and 106
Thanks in advance
Sammy