Re: tail for a list of files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ah...

exec instead of xargs... ok...

is there a way with exec ???

thanks


On Sat, Mar 3, 2018 at 11:25 AM, Clifford Snow <clifford@xxxxxxxxxxxxxx> wrote:
> find /foo -name "*dog.dat" -exec tail -5 {} \;
>
> should work. You could also add various find options like -type f to make
> sure its a regular file and -mtime n to get recently modified files.
>
> On Sat, Mar 3, 2018 at 8:15 AM, bruce <badouglas@xxxxxxxxx> wrote:
>>
>> Hey..
>>
>> 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..
>>
>> thoughts??
>>
>> find /foo -name "*dog.dat ... tail -5    << obviously not correct. but
>> what would work?
>>
>> thanks..
>> _______________________________________________
>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>
>
>
>
> --
> @osm_seattle
> osm_seattle.snowandsnow.us
> OpenStreetMap: Maps with a human touch
>
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux