Skip to main content
8 events
when toggle format what by license comment
Dec 31, 2019 at 7:59 comment added turzifer @nohillside, this could be the most useful answer I got on StackExchange. I mean it.
Dec 31, 2019 at 6:38 vote accept turzifer
Dec 30, 2019 at 19:57 comment added user3439894 Nice use (again) of -execdir. +1
Dec 30, 2019 at 15:50 history edited nohillside CC BY-SA 4.0
deleted 1 character in body
Dec 30, 2019 at 15:21 comment added nohillside @lx07 Thanks for reminding me of -depth :-)
Dec 30, 2019 at 15:21 history edited nohillside CC BY-SA 4.0
deleted 30 characters in body
Dec 30, 2019 at 15:19 comment added lx07 Or to also recurse could add another loop something like for d in $(find . -type d); do; for f in $(find $d -type f -depth 1); do; zip -r "${d}/${d##*/}.zip" "${f}"; done; done (I copied the ${d##*/} bit from here)
Dec 30, 2019 at 15:07 history answered nohillside CC BY-SA 4.0