I would like to compare two fields within one file F1 and if there is a mismatch between two fields in a row then write it out to a output file F2. can be this done using sort utility. I did search the forum but i coudn't find something similar to my question, please point me if there is already a thread discussing about this topic.
eg:
FILE1
pos(1-15) pos(16-30)
rec1: allanxsmith allanJsmith
rec2: rainxdeer rainxdeer
rec3: kimxlarry kimslarry
rec4: robertxhenry robertxhenry
FILE1
pos(1-15) pos(16-30)
rec1: allanxsmith allanJsmith
rec2: rainxdeer rainxdeer
rec3: kimxlarry kimslarry
rec4: robertxhenry robertxhenry
in the above example rec1 and rec3 has to be written to the output file since those fields dont match.
thanks,