Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
grep file for key in loop
Name: ReubenK Date: December 19, 2003 at 07:43:12 Pacific OS: Solaris CPU/Ram: not known
Comment:
I have two text files f1.txt and f2.txt, each one has more than two millians of lines of text. I want to read each line in file f1.txt and grep for that in file f2.txt and if not matching then put the unmatched line in to another file f3.txt.
I tried the following way but getting errors, I appriciate if any one can put some input on this.
Thanks Reuben
while read line do if [ 'grep ${line} f2.txt' -lt 0 ] ; then echo ${line} fi
Summary: Myself, I'm very careful with changing production code so I try to limit changes when I can. You don't say how the output of your Current script is captured - a file perhaps? If so, you could use th...
Summary: Does anyone know what is the function of the sysrq key in solaris. Are there any combinations of that key with other that sync or reboot etc. ...