From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 05:05:11 2014 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 91B3132A for ; Mon, 30 Jun 2014 05:05:11 +0000 (UTC) Received: from pandora.au.calorieking.net (114.179.70.115.static.exetel.com.au [115.70.179.114]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1E6902BBC for ; Mon, 30 Jun 2014 05:05:10 +0000 (UTC) Received: from pandora.internal (localhost [127.0.0.1]) by pandora.au.calorieking.net (Postfix) with ESMTP id C3D8833CCB; Mon, 30 Jun 2014 13:05:00 +0800 (WST) X-Virus-Scanned: amavisd-new at calorieking.com Received: from pandora.au.calorieking.net ([127.0.0.1]) by pandora.internal (pandora.internal [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LH7lZE4s5wRZ; Mon, 30 Jun 2014 13:04:50 +0800 (WST) Received: from egeria.internal (egeria.internal [192.168.2.111]) by pandora.au.calorieking.net (Postfix) with ESMTPSA id DC6C533CDB; Mon, 30 Jun 2014 13:04:50 +0800 (WST) Message-ID: <53B0EFF2.80205@calorieking.com> Date: Mon, 30 Jun 2014 13:04:50 +0800 From: Gregory Orange User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Gary Kline , FreeBSD Mailing List Subject: Re: long string using find and "-exec ls -ls" to find part-of filename References: <20140630045605.GA11147@ethic.thought.org> In-Reply-To: <20140630045605.GA11147@ethic.thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2014 05:05:11 -0000 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