Tar, argument list too long…

http://paul.boin.org/archives/20-tar-argument-list-too-long.html

has

#show argument count (memory)
getconf ARG_MAX

# cat names of all desired files into one file
find . -name ‘*.dat’ > file.lst
# run tar with the files in the list file
tar -czvf archive.tgz –files-from file.lst

or

find htdocs -name ‘*.html’ -print0 | xargs -0 chmod a+r

Advertisements

~ by nambabwe on 2007/03/07.

 
%d bloggers like this: