I am using Bash script in Ubuntu.
I have several .mbz files which are basically zip files so I want to unzip them with tar. How i can tar them with a loop and create a directory for each of them.
e.x this is how i did for one file
mkdir course4444
tar -xvzf course4.mbz -C course4444
cd course4444
tar -cvzf course4444.mbz *
But, I have more than 6 .mbz files so I want for each of them to have a directory.