Skip to main content

All Questions

Tagged with
1 vote
1 answer
2k views

Batch Script to delete certain files inside subfolders of a main subfolder

My problem is this I have an extensive collection of pictures spanning several sub-folders (I'm talking of several hundred of folders, not a few), under a main folder, as example: Birthdays Mom ...
diras2010's user avatar
  • 308
4 votes
3 answers
8k views

bash: find and zip all subfolders of a folder

how would one find all subfolders of a folder and zip them separately ? folder structure ./folder -subfolder_1 -subfolder_2 -subfolder_3 expected result: ./folder -...
m1k3y02's user avatar
  • 285
2 votes
1 answer
11k views

Recursively process zip archives to extract files while discarding specific format of files

UPDATE: I noticed that many people are viewing this thread, which makes me believe that this situation is not so rare after all. Anyway, I had asked a similar/related question on SO here, which has ...
Fr0zenFyr's user avatar
  • 131
0 votes
2 answers
5k views

How to recursively zip every file in each folder?

I am trying to write a batch script that when run into a folder, it takes all the files in this folder and zip them into one, then takes the remaining folders and looks into them and do the same, ...
untore's user avatar
  • 161
0 votes
1 answer
1k views

How to Unzip files recursively in Linux / DOS

I have a zipped folder which contains thousands of zipped folders contained in itself and that goes down the hierarchy, I have to unzip each and every file and place it in a single folder. This task ...
Murtaza's user avatar
  • 131
25 votes
4 answers
27k views

zip: Argument list too long (80.000 files in overall)

I need to compress 80.000 files into multiple zip files. This is the command I use: zip -s 200M photos_test/* However I get the following error: -bash: /usr/bin/zip: Argument list too long What ...
aneuryzm's user avatar
  • 2,135