merge file with dfsort
Posted: Thu Oct 15, 2009 10:10 pm
question 1: I have two files(file A, file B), the record length of file A is 100, and file B is 200, can merge the above two files into one output file with record length 300 in one step?
quesion 2:I have one file with several records below:
123A001XXXXXXXXXX
3424A002sjkXXXXXXX
14A003sjkXXXXXXXXX
15645A004XXXXXXXXX
..........................
i only want to select the string start with A(noted: The position of A in each record is different) for 4 bytes for each record and output into file, so the result of above file after sort should be:
A001
A002
A003
A004
.....
quesion 2:I have one file with several records below:
123A001XXXXXXXXXX
3424A002sjkXXXXXXX
14A003sjkXXXXXXXXX
15645A004XXXXXXXXX
..........................
i only want to select the string start with A(noted: The position of A in each record is different) for 4 bytes for each record and output into file, so the result of above file after sort should be:
A001
A002
A003
A004
.....