Input file:
01.05.2016 87893938
02.05.2016 35435345
03.05.2016 35435345
04.05.2016 12345678
I want to keep only four lines in my file. that means if date 05.05.2016 6905698 is inserted then first line of my file will be removed. I only want to keep last four days data in my file.
Output file:
02.05.2016 35435345
03.05.2016 35435345
04.05.2016 12345678
05.05.2016 89459678
tail -4
? – Archemar May 05 '16 at 11:09