need to remove header and trailer from file
Posted: Fri Feb 13, 2015 8:40 am
hi,
i am reading comma separted sequential file layout as follows
Header ---20150606NameOfile
Columname-columnID
records
trailer
i need to remove header ,column names and trailer so that i will load the records into the table.
i tried with filer option command sed '1d;$d' which only stripping the header and trailer part not the column name part and due to which i am not able to read the file.can you please help me on this.
i am reading comma separted sequential file layout as follows
Header ---20150606NameOfile
Columname-columnID
records
trailer
i need to remove header ,column names and trailer so that i will load the records into the table.
i tried with filer option command sed '1d;$d' which only stripping the header and trailer part not the column name part and due to which i am not able to read the file.can you please help me on this.