Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu tar all .log and .txt

find . -regextype posix-extended -iregex '.*.(log|txt)' -print0 | xargs -0 tar zcf $file
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #ubuntu #tar
ADD COMMENT
Topic
Name
6+1 =