File has to be split into four files
Posted: Thu Aug 30, 2007 5:42 pm
A files has records :
This file has to be split into four files
Whenever '****' is encountered at POS 1:4 split the file and put all records after last '****' into last file.
I know how to do this with FILE-AID ...But I want to use SORT in place...
Please help.
****
1
2
3
****
3
4
****
5
****
6
7
8
1
2
3
****
3
4
****
5
****
6
7
8
This file has to be split into four files
1
2
3
2
3
6
7
8
7
8
Whenever '****' is encountered at POS 1:4 split the file and put all records after last '****' into last file.
I know how to do this with FILE-AID ...But I want to use SORT in place...
Please help.