JIE mail-list wrote:
I want to create a gzip'ed tar archive of all my dot files for backup purposes but I can't figure out how to select only the dot files without also getting everything else in the folder.
$ tar -cvf backup.tar.gz .* This seems to get everything in the folder; not good.
Try this:
$ tar cvf backup.tar .[a-z,A-Z,0-9]*
If a file name starts with a dot it behaves slightly differently to other files when you use wildcards.
cheers Duncan
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
