I have a flat file which contains the following data records between H: and T:. H:20050427 HEADER RECORD0000000 00000 000000000 123456 00 654321 DATARECORD0000000 00000 000000000 123456 00 654321 DATARECORD0000000 00000 000000000 123456 00 654321 DATARECORD0000000 00000 000000000 123456 00 654321 DATARECORDT:20050427 TRAILER RECORD[blank space][blank space] is a new line (carriage return key) created with no records after T:How do I remove the blank space(s) (if present) from the file and create a new file with data which are present between H: and T:?
Create a new file by removing the new line character at the end of file
shell script;ksh