comapring two files
Posted: Wed Feb 11, 2009 2:19 am
Can anyone please help me with this query..I am new to all this utilities ..Can you please help me with example of code.
I have two input file each of FB and Record length of 80 as below
File 1
11111111
file 2
ASJGHJLHJHTR11111111AHSKLGFJL
I want to comapre the record in file 1 starting at 1 with the record in file2 starting at 12 and if both are equal then send that record to output file. So in this case the output file should be
Output file
ASJGHJLHJHTR11111111AHSKLGFJL
How can I get this done in batch command.
Can i use compare if yes how??
please help me I really need this code.
Thanks in advance
I have two input file each of FB and Record length of 80 as below
File 1
11111111
file 2
ASJGHJLHJHTR11111111AHSKLGFJL
I want to comapre the record in file 1 starting at 1 with the record in file2 starting at 12 and if both are equal then send that record to output file. So in this case the output file should be
Output file
ASJGHJLHJHTR11111111AHSKLGFJL
How can I get this done in batch command.
Can i use compare if yes how??
please help me I really need this code.
Thanks in advance