On 03/04/2018 11:43 AM, bruce wrote:
um.. hey guys....
I wanted to get the last X lines of each file from an input/wildcard
list of files !!
so.. I wanted the last 5 lines of the 126.pdf as well as the last 5
lines of the 125.pdf...
--NOT the last X files from a list of files..
There were already at least two different solutions posted.
tail -n 5 $(find /foo -name "*dog.dat")
find /foo -name "*dog.dat" -print0 | xargs -0 tail -n5
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org