Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking for a quick script solution



On Thu, Jun 25, 2009 at 10:33 PM, Richard Pieri<richard.pieri-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> 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






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org