Mochabomb

Web Design and Technical notes

Mochabomb header image 2

Cygwin gunzip errors - a band-aid

January 3rd, 2006 11:48 am · No Comments

Cygwin was erroring out when I tried the following:
csh# gunzip articles.tar.gz

After some googling, found that gunzip is symlinked to gzip -d, so I added this line to my .aliases file:
csh# alias gunzip `gzip -d `

This fixed the errors. Now I am able to de-compress a lot of files quickly with this command line script, easier and faster than most GUI zip/compression programs:
csh# sh (sh/ksh is better for scripting than csh IMHO)
# for file in `ls | grep tar`; do
> gunzip $file
(aliased to gzip -d in a .aliases file)
> tar -xvf $file
article/
article/article.module
article/CHANGELOG
article/CREDITS
article/INSTALL
article/LICENSE.txt
article/README.txt
autotimezone/
autotimezone/LICENSE.txt
autotimezone/INSTALL.txt
autotimezone/README.txt
autotimezone/autotimezone.module
badbehavior/
badbehavior/badbehavior.module
badbehavior/LICENSE.txt
badbehavior/README.txt
>done
#

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit

Tags: Cygwin Linux

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment