Shell scripting issue
by freewarehookie from LinuxQuestions.org on (#5SGEY)
Hello,
I am relatively new to Linux and I would like to know how you, as professionals, transcript the following command, which programs you use, to learn from it.
Unzip all files in a directory into the same name as the ZIP-File and save all found filenames, without the .zip, in a file called FILES. Each name shall have a new line.
What is the recommended command and way? To read out the directory first and all files in it, subtract the .zip and safe it in the FILES file with a specific loop and then use this names to create the directories with another loop and extract each file accordingly? How would you, as professionals, solve this issue in the most convenient and recommended manner?
How is it correct / by the book?
Would you create a FILES file for later reuse or would it be better to read out the already unpacked folders each time? Please answer with regard to programmers point of view.
Kind regards,
Freewarehookie
I am relatively new to Linux and I would like to know how you, as professionals, transcript the following command, which programs you use, to learn from it.
Unzip all files in a directory into the same name as the ZIP-File and save all found filenames, without the .zip, in a file called FILES. Each name shall have a new line.
What is the recommended command and way? To read out the directory first and all files in it, subtract the .zip and safe it in the FILES file with a specific loop and then use this names to create the directories with another loop and extract each file accordingly? How would you, as professionals, solve this issue in the most convenient and recommended manner?
How is it correct / by the book?
Would you create a FILES file for later reuse or would it be better to read out the already unpacked folders each time? Please answer with regard to programmers point of view.
Kind regards,
Freewarehookie