On 03/03/18 17:15, bruce wrote:
Trying to figure out how to do a single line cmd (it should be
possible right??) to do a tail -5 for a list of files???
I thought I could combine find with exec/xargs and tail to generate
the list of files/tail data.. But couldn't figure out the syntax..
find /foo -name "*dog.dat ... tail -5 << obviously not correct!
what would work?
If I understood you correctly, then
find /foo -name "*dog.dat"|tail -5
should do the job. You forgot the pipe sign :-)
users mailing list -- users(a)lists.fedoraproject.org
To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
Fedora release 27 (Twenty Seven)
Joachim Backes <joachim.backes(a)rhrk.uni-kl.de>