How to find and tar files into a tar ball

Bonne idée d’utiliser l’option -r pour "append". Je n’y aurais pas pensé.

Google+ reshared post

Want to find all *.py files and create a tarball on a Linux/Unix/macos? Try

find ~ -name "*.py" -exec tar -rvf ~/all-python-files.tar "{}" \;

https://www.cyberciti.biz/faq/linux-unix-find-tar-files-into-tarball-command/

Importé de Google+

Leave a Reply

Your email address will not be published. Required fields are marked *