Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2014 13:04:50 +0800
From:      Gregory Orange <gregory.orange@calorieking.com>
To:        Gary Kline <kline@thought.org>,  FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: long string using find and "-exec ls -ls" to find part-of filename
Message-ID:  <53B0EFF2.80205@calorieking.com>
In-Reply-To: <20140630045605.GA11147@ethic.thought.org>
References:  <20140630045605.GA11147@ethic.thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53B0EFF2.80205>