Problem to be addressed:
You have a set of compressed files that all need to be extracted, and you don't want to manually extract each one.
Steps
- create a new file somewhere in your path using your favorite text editor. (File can be named anything you want, ex. "detar")
- add the following line to the new file:
- for f in *.tar.gz;do tar xvzf $f;done
- if you are confident that you never want to keep the compressed versions of the files, and you never use the extensions in the naming of the extracted files, you can optionally add the next line:
- save and close your file.
- type the file name ("detar") on the command line in any directory containing .tar.gz files.
Notes:
-- Main.DanielDeatherage - 09 Sep 2014
Contributors to this topic
DanielDeatherage, JosephReitman
Topic revision: r2 - 2021-11-03 - 19:30:33 - Main.JosephReitman