Hi, I need to chope the header and footer record from an input file and make a new output file, please let me know how i can do it in unix.thanks.
You can use sed to print only those lines that are needed.
Or you can use grep similarily.
Vino
You can use grep -v "keyword" >outfile where keyword is present in your header and footer
If your header and footer are just one record length, you can use sed :
sed '1d;$d' input_file > output_file
This command delete firstrecord (1d) and last record ($d).
Jean-Pierre.
Thanks a lot to all....for quick reply. ur suggestions are working well...i m using sed command given by aigles.Thanks once again buddy. Bye