Hi,
I have a large data file around 1.2 millions lines/records with the size of about 900 meg on the AIX server. The goal is to break up the file into smaller files with the name prefix of "data_" follow by sequence number, "01", "02".... and ended with ".dat". Each file should contain max of 50,000 lines. The last file may or may not have 50,000 lines. Other then just using a loop to count 50,000 times over and over, is there another more efficient and reliable method to break up the large file and at the same time keeping track of correct starting line for the next data file?
Thanks
Mike
I have a large data file around 1.2 millions lines/records with the size of about 900 meg on the AIX server. The goal is to break up the file into smaller files with the name prefix of "data_" follow by sequence number, "01", "02".... and ended with ".dat". Each file should contain max of 50,000 lines. The last file may or may not have 50,000 lines. Other then just using a loop to count 50,000 times over and over, is there another more efficient and reliable method to break up the large file and at the same time keeping track of correct starting line for the next data file?
Thanks
Mike