Hi
I want to print last 10 lines using either sed/awk and
delete also.
Thanks ,
Mr
Hi
I want to print last 10 lines using either sed/awk and
delete also.
Thanks ,
Mr
try this:
sed -e :a -e '$d;N;2,10ba' -e 'P;D' filename
Hi ,
Thanks for your reply.Can you explain this
sed -e :a -e '$d;N;2,10ba' -e 'P;D'
Thanks,
Mr