Looking for a quick script solution

Derek Atkins warlord-DPNOqEs/LNQ at public.gmane.org
Thu Jun 25 20:48:15 EDT 2009


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






More information about the Discuss mailing list