0

I was expecting something like,

find . -name "*.bor" -exec sh -c 'zip ???' sh {} +

where the ??? are replaced with $@ or similar.

The end result needs to look like,

  • 1.bor.zip
  • 2.bor.zip etc.

1 Answer 1

2

Like this:

find . -name '*.bor' -exec zip '{}.zip' '{}' ';'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .