Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>Copy multiple files that begin with .

Copy multiple files that begin with .

giskard22
02-24-2006, 12:35 PM
How does one use wildcards to refer only to items that begin with a .? I'd like to be able to easily copy all the hidden items in my ~.

fat elvis
02-24-2006, 01:18 PM
I thought all you had to do was place a \ in front of the .file

I tried this command:

sudo cp \.* test-folder

and it copied all the non directories into the test folder. For some reason it didn't copy the directories.

I then tried:

sudo cp -R \.* test-folder

but it still failed...perhaps someone else can chime in and tell us the mistake.

HTH

hayne
02-24-2006, 03:56 PM
Wildcards is one of the topics in this Unix FAQ (http://forums.macosxhints.com/showthread.php?t=40648)


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
bash not using my .bas
Applescript: Hide Proc
help with installing p
Mozilla install from d
ssh - don't want to us
Escaping quotes in Tig
Terminal Keybindings 
JAVA help, please! 

News Archive

Displaying Images on t
Install Office from th
Terminal Problem...? 
cc1plus not executable
desktop icons.. 
at & growlnotify 
unknown terminal type 
scp arbitrary files 
What and why is a 'Dis
permissions already me

Related stories:

osascript in the command line
Downloading files from remote server
Transfer entire directory in FTP command-line?
How to edit visudo
Unix Book??
Boot Problem - "/etc/master:passwd: No such file or directory"
New Directory for Secret Files

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics