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



How about (in bash):

foreach f in *.gz ; do
  gunzip $f
done

-derek

Quoting sgoldman <sgoldman-DPNOqEs/LNQ at public.gmane.org>:

> Hello Blu.
>        I 'm faced with a directory with about 100 gzip files that 
> need to be uncompressed.
>
>        they are at s_2_0001_int.txt.p.gz and go to s_8_0098_nse.txt.p.gz
>
>
> s_2_0001_int.txt.p.gz
>
> s_8_0098_nse.txt.p.gz
>
>
>        If there was ever a need for a script this is it.. little 
> experience here though..
>
>        I 'm thinking a for [i} something
>            to load the file  * gz
>            then gunzip
>            form 1 to 100
>
>        not sure where to start.
>
>        Open for some ideas
>
> Thanks,
> Stephen
>
>
>
>
>
>
>
>
>
>
> s_2_0001_int.txt.p.gz
>
> s_8_0098_nse.txt.p.gz
>
>
>
>
> Stephen Goldman
> System Administrator
> MIT Biology
> sgoldman-3s7WtUTddSA at public.gmane.org
> _______________________________________________
> Discuss mailing list
> Discuss-mNDKBlG2WHs at public.gmane.org
> http://lists.blu.org/mailman/listinfo/discuss
>



-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord-DPNOqEs/LNQ at public.gmane.org                        PGP key available







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