Operating System - HP-UX
1757721 Members
2268 Online
108863 Solutions
New Discussion

Flush a file keeping last 10 lines

 
SOLVED
Go to solution
Mike Miller_8
Regular Advisor

Re: Flush a file keeping last 10 lines

tail -10 showopt.rpt | {^Jwhile read linea^Jdo^Jecho $linea^Jdone^J}

show sweet and to the point.