I have a tar file. That's what its structure looks like:
-images.tar.gz
-folder_0_image_1.jpg
-folder_0_image_2.jpg
-folder_0_image_3.png
-...
-folder_1
-folder_1_image_1.jpg
-folder_1_image_2.jpg
-...
-folder_2
-folder_2_image_1.jpg
-folder_2_image_2.jpg
-...
-folder_x ...
How do I extract all the files from the root directory that have the .jpg extension?
(I'd like to extract these files: folder_0_image_1.jpg, folder_0_image_2.jpg ...)