On Sun, 3 Feb 2002, Nick Wilson wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all, 
> This should be simple but I'm not finding it so.
> I want to cp every file and directory that starts with a '.'
> I'm trying to backup all the rc files/dirs on my home dir and just can't
> work it out. Any help appreciated!

the pattern that will match all hidden files/directories is
.[!.]*, and you want to copy recursively, so you could do

$ cp -a .[!.]* <name-of-dest-dir>

rday



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to