blu.org  wiki

 « Return to Thread: Looking for a quick script solution

Re: Looking for a quick script solution

by Gordon Marx :: Rate this Message:

Reply to Author | View in Thread

On Thu, Jun 25, 2009 at 10:33 PM, Richard Pieri<richard.pieri@...> wrote:
> This finds all files in the current directory (.) but no deeper than
> the current directory (-depth 1) that match "*.gz" and execs gunzip on
> each one.

That's actually the behavior of find's -exec option. xargs is smarter
than that -- it executes command lines that are as near as possible to
the maximum length each time.

Gordon
_______________________________________________
Discuss mailing list
Discuss@...
http://lists.blu.org/mailman/listinfo/discuss

 « Return to Thread: Looking for a quick script solution