I am sorting a number of files all of the same record length, 5051 bytes into 1 file. The files are keyed on bytes 1 to 31. The command I am using is
sort -T /dev/tmpusr -o /dev/tmpusr/fileout -k 1.1,1.31 file1 file2 file3 file4
the output file is then of varying record length which causes me problems in using the file as it needs to be fixed length 5051 bytes.
A warning error message is being produced during the sort execution:
sort: Warning: A newline character was added to the end of file file1
Do you know how I can force the record length to remain 5051 bytes ?
sort -T /dev/tmpusr -o /dev/tmpusr/fileout -k 1.1,1.31 file1 file2 file3 file4
the output file is then of varying record length which causes me problems in using the file as it needs to be fixed length 5051 bytes.
A warning error message is being produced during the sort execution:
sort: Warning: A newline character was added to the end of file file1
Do you know how I can force the record length to remain 5051 bytes ?