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

Gregory Orange gregory.orange at calorieking.com
Mon Jun 30 05:05:11 UTC 2014


On 30/06/14 12:56, Gary Kline wrote:
> how, using the find utility and no temp files, can I get a ls -lsi
> listing of something like:
> 	"foo.tar"  andOr
> 	"foo.tgz" andOr
> 	"foo.tar.gz"

How about this?
find . -name foo.tar -o -name foo.tgz -o -name foo.tar.gz|xargs ls -lsi


More information about the freebsd-questions mailing list