I would like to perform the following on the output of a command ::--->
Remove the top 5 lines..........
Remove the bottom 2 lines....
Reverse line order
I created the following sed file ::--->
1,5d
N;$!P;$!D;$d
1!G;h;$!d
command | sed -e cleanup.sed
Doesn't seem to work....
Any ideas?
Thanks....
Joe Despres
Remove the top 5 lines..........
Remove the bottom 2 lines....
Reverse line order
I created the following sed file ::--->
1,5d
N;$!P;$!D;$d
1!G;h;$!d
command | sed -e cleanup.sed
Doesn't seem to work....
Any ideas?
Thanks....
Joe Despres