After a restoration of my HDD with PhotoRec I have a folder with 36,500 GZ archives. Of those, around 200 are very important for me.
Each of these archives contains exactly one TAR archive. These TAR archives contain folders and among others files of the following file types:
Is it possible to create a shell script that
- opens each of these GZ archives
- checks if there is a TAR archive in it and - if yes
- opens the TAR archive
- checks if the TAR archive contains one of the given filetypes and - if yes
- moves the GZ archive containing the TAR to a given directory
As I am a complete beginner when it comes to shell scripts, I would be very grateful for any hint or pointer in the right direction on how such a script could look like.