Tar multiple folder to multiple files to another directory and delete original folder
Hi People, I'm using Suse Linux and need help on the shell script
my scenario is as below. under my main folder "root" I have sub folder Folder A, B and C, and inside each subfolder comes with another sub folder named F1, F2 F3 recpectively.
I need to zip all the folder individually to another location(/zipped/) with original parent folder and name like ../A/F1.tar.gz, ../A/F2.tar.gz, ../B/F1.tar.gz, ../B/F2.tar.gz etc. Then delete the original folder.
Can anyone help me with the script?
Last edited by zeroize; 03-30-2016 at 10:10 AM.