Avoiding tar's (or any other commandline's) argument list too long error
1 2 # generate the file list 3 find -iname '*.ext' > fileList.txt 4 5 #run tar passing it the file list 6 tar czvf archive.tar.gz --files-from fileList.txt 7 8 # a shorthand of this would be: 9 find . -name '*.ext' -print | tar -cvzf archive.tar.gz --files-from -