Ubuntu Tar All .log et .txt

find . -regextype posix-extended -iregex '.*\.(log|txt)' -print0 | xargs -0 tar zcf $file
Duck Null