Home ›
Shell commands for untarring (and deleting the archive) a bunch of gzip filesShell commands for untarring (and deleting the archive) a bunch of gzip files
Submitted by Benjamin Melançon on January 2, 2009 - 8:51pm
In the process of adding modules Agaric finds useful to Drupal development to a special git repository I did a bit of bash command line scripting that was fun for me:
After a bunch of wget's like:
wget http://ftp.drupal.org/files/projects/schema-6.x-1.3.tar.gz
I ran:
for a in `ls -1 *.tar.gz`; do tar -zxvf $a; done
for a in `ls -1 *.tar.gz`; do rm $a; done
Credit to yapp and sthneed at LinuxQuestions.org
Resolution
Searched words:
unzip gzip
delete remove
Comments
Post new comment