tail command with sleep and number of lines
I am new bee in Unix,
I want to use tail -f with sleep and number of lines, to display at a time
i am using
tail -f -s 20 -n 5 filename.
This is displaying correct result for 1st time, but as tail -f is appending , i am not able to view 5 lines
PLZ guide me...
Re: tail command with sleep and number of lines
You need to put it in an infinite loop and not use the -f option. Try this, using the syslog file as an example:
tail -n 5 /usr/adm/syslog