Quote:
fazliturk
I thing tail is not suitable for pipe why pipe sends line by line so for tail -1 every line will be the last line
|
tail should work. Check this,
Code:
rkumar@bdc4reteaix1w: /home/rkumar >ls
bkgdtest dead.letter mbox mypipe nohup.out test.pl unix_forum
cprog f1.txt myfile newone restart_sshd.sh testpipe.sh whsmith
rkumar@bdc4reteaix1w: /home/rkumar >ls | tail -1
whsmith