I have 30 tgz files like these:
live-3.0.10-20101031.tgz
live-3.0.4-20101005.tgz
when I extract them it will be extract in to "live" folder.(ie: tar xvzf live-3.0.10-20101031.tgz will extract to "live" folder I would like to have a small script that will extract all files from oldest to newest to "live" folder. I want new files to be copied over old files this is what I did but I'm not if it's good...can you please let me know what you think?
#!/bin/bash
for f in live*.tgz; do
echo $f
tar xzvf $f &
done