[PLUG] untar multiple files

AthlonRob AthlonRob at axpr.net
Wed Jan 12 06:53:20 UTC 2005


On Tue, 2005-01-11 at 22:31 -0800, David Phillips wrote:
> Does anyone know of an easy way to untar/zip multiple files at once?  I
> figure a script is probably the best solution but unfortunately my
> scripting skills are about non-existent at this point.

Learn for loops:

bash$ for i in *.tar.gz; do tar -xvzf $i; done

-- 
Rob                    |  If not safe,
  http://rob.axpr.net  |    one can never be free.




More information about the PLUG mailing list