driddickemc
IS-IT--Management
Have a 2 files..
file1.txt
dddddd
ffffff
file2.txt
dddddd 111 222 333
ffffff 333 444 555
for i in `cat file1.txt`
do
grep -i $i file2.txt
done
returns nothing.. when I ...do echo $i it returns the contents of the cat command..
Please advise..
file1.txt
dddddd
ffffff
file2.txt
dddddd 111 222 333
ffffff 333 444 555
for i in `cat file1.txt`
do
grep -i $i file2.txt
done
returns nothing.. when I ...do echo $i it returns the contents of the cat command..
Please advise..