I currently have this script:
find . -name '*.log' -print0 | xargs -0 tar zcf $file
To collect all the "*.log" files. I would like to modify it to include also all the ".txt" files but I don't know how, this should be fairly simple right?
If you use the
There are a number of ways to change your find command. Here is one: