long string using find and "-exec ls -ls" to find part-of filename

Olivier Nicole olivier.nicole at cs.ait.ac.th
Mon Jun 30 05:09:05 UTC 2014


> find . -name foo.tar -o -name foo.tgz -o -name foo.tar.gz|xargs ls -lsi

With parenthesis:

find . \( -name foo.tar -o -name foo.tgz -o -name foo.tar.gz \) |xargs ls -lsi

Olivier

>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list