Correction - I shouldn't have copy and pasted. drop the {} \; from the script
find /foo -name "*dog.dat" -print0 | xargs -0 tail -n5 On Sat, Mar 3, 2018 at 10:44 AM, Clifford Snow <cliff...@snowandsnow.us> wrote: > > > On Sat, Mar 3, 2018 at 8:40 AM, bruce <badoug...@gmail.com> wrote: > >> >> Thanks.. works .. but I forgot one thing... >> >> Is there a way to list the "file" prior to the tail or would that >> require a bash/shell script.. I could have sworn that I've seen how to >> accomplish this a while ago... arggh! >> >> For that I think you need to use xarg as: > > find /foo -name "*dog.dat" -print0 | xargs -0 tail -n5 {} \; > > > -- > @osm_seattle > osm_seattle.snowandsnow.us > OpenStreetMap: Maps with a human touch > -- @osm_seattle osm_seattle.snowandsnow.us OpenStreetMap: Maps with a human touch
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org