The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to print the files names that being searched umen Shell Programming and Scripting 2 12-26-2007 02:49 AM
How to get files names passed to a script unishiva Shell Programming and Scripting 5 11-08-2007 04:01 AM
total number of files which have "aaa" in files whose names are File*_bbb* sudheshnaiyer UNIX for Dummies Questions & Answers 1 08-16-2007 03:34 PM
Moving files and changing names muneebr UNIX for Dummies Questions & Answers 5 11-20-2006 09:42 AM
Column names in flat files srivsn Shell Programming and Scripting 1 12-27-2005 06:47 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-10-2005
fermisoft's Avatar
fermisoft fermisoft is offline
Registered User
  
 

Join Date: Jun 2005
Location: Mumbai
Posts: 16
copy files with invalid names

Hi all,

I have to copy a directory to another location. While doing so with the cp command I got some errors due to invalid filenames of some files.

For example, some files have a colon in their names, which is throwing error. These files are not copied to the destination.

How to copy the entire directory irrespective of the invalid filenames of some file?

Karthik
  #2 (permalink)  
Old 08-10-2005
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
It works well

Look at this


Code:
[/tmp/vino]$ ls
vin:  vin\  vino  v@no
[/tmp/vino]$ cd ..
[/tmp]$ cp -r vino/ temp/
[/tmp]$ cd temp
[/tmp/temp]$ ls
vin:  vin\  vino  v@no

Vino
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0