[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    Re: long string using find and "-exec ls -ls" to find part-of filename
From:       Gary Kline <kline () thought ! org>
Date:       2014-06-30 21:55:34
Message-ID: 20140630215534.GA28552 () ethic ! thought ! org
[Download RAW message or body]

=====
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.


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic