yeah , I just figured out the way ...
I am actually writing a script for ebcdic to ascii conversion , followed by cutting of header and trailer together with record itself, buried in between, when sizes of file go beyond 2GB
Using sed, I am able to do it ...
sed -n '
/f8f8/{
N
s/f8f8 *\n*f5f0 *\n*f0f0 *\n*f1f7 *\n*f4f6 *\n*f7c1//
p
}' file | tail -1
Thx..
Last edited by finder255; 10-23-2008 at 08:38 AM.
|