I'm running against a file with 1008 records like this, all beginning '4760 Slave':
4760 Slave,7,3607 ,GL ,200605,11320024 , ,GBP ,X00033
,AI80190 ,GBP,+,000000000015
370123, ,P ,
I'm running a sort, like this:
sort +1 -9 -t, -o sorted_REPORT_200605_3607_GL_RECON REPORT_200605_3607_GL_RECON
...which *should* sort the comma-seperated file on fields 2-9, outputting it to "sorted_...." file... but the output file I get just contains:
4760 Slave
4760 Slave
4760 Slave
etc...
When it runs, I do see a message of:
"sort: Warning: A newline character was added to the end of file REPORT_200605_3607_GL_RECON."
Any help please? Where has the remainder of each record gone?
If I 'vi' the file, it looks fine, but I have also noticed, if I 'head' the file, I see the same thing:
4760 Slave
4760 Slave
4760 Slave