2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

How to combine the 'tar' command with 'find'

I can never remember find's exec syntax, so I cheat and do something simpler... e.g. to grab all the *.sh files: FOO=$(find . -name "*.sh") && tar cvf useful.tar $FOO Apologies it's ...
user avatar
  • 21

Top 50 recent answers are included