From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 21:57:07 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 21D97E23 for ; Mon, 30 Jun 2014 21:57:07 +0000 (UTC) Received: from p3plsmtpa07-08.prod.phx3.secureserver.net (p3plsmtpa07-08.prod.phx3.secureserver.net [173.201.192.237]) by mx1.freebsd.org (Postfix) with ESMTP id CFA202A01 for ; Mon, 30 Jun 2014 21:57:06 +0000 (UTC) Received: from ethic.thought.org ([209.180.213.209]) by p3plsmtpa07-08.prod.phx3.secureserver.net with id LlvU1o0014XeM0101lvUUc; Mon, 30 Jun 2014 14:55:29 -0700 Date: Mon, 30 Jun 2014 14:55:34 -0700 From: Gary Kline To: Polytropon , FreeBSD Mailing List Subject: Re: long string using find and "-exec ls -ls" to find part-of filename Message-ID: <20140630215534.GA28552@ethic.thought.org> References: <20140630045605.GA11147@ethic.thought.org> <53B0EFF2.80205@calorieking.com> <20140630053004.GB16901@ethic.thought.org> <20140630064044.GA25085@ethic.thought.org> <20140630230316.44ec3257.freebsd@edvax.de> <20140630214506.GA1606@holstein.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140630214506.GA1606@holstein.holy.cow> User-Agent: Mutt/1.5.21 (2010-09-15) 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 21:57:07 -0000 ===== Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 27++ years of service to the Unix community. On Mon, Jun 30, 2014 at 11:45:06AM -1000, Parv wrote: > > If only one command to be run for each file, then xargs can be used > with "-n" option to specify "the maximum number of arguments taken > from standard input for each invocation" ... > > find ... | xargs -n 1 command ... > > how about whitespace? ls -lsi appears as two cmds, so would it work as you have with backtics? find ... | xargs -n 1 `ls -lsi` > -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Twenty-seven years of service to the Unix community.