I'm using WSL (Ubuntu) and trying to recursively zip the files in a bunch of subfolders.
i.e.
Main Folder .
SubFolder 1's files get zipped into a .zip
SubFolder 2's files get zipped into a .zip
SubFolder 3's files get zipped into a .zip
SubFolder 4's files get zipped into a .zip
SubFolder 5's files get zipped into a .zip
etc.
I nav to the Main Folder, and run this:
find . -type d -maxdepth 1 -execdir zip -r '{}.zip' '{}' \;
Upon doing so, I get spammed with a bunch of:
find: ‘zip’: No such file or directory
I've also tried the exact same line, using exec
instead of execdir
but got the same result. Anyone able to point out the problem?