The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Copy files from the file to another directory shreethik SUN Solaris 4 12-20-2007 01:26 PM
Copy files from a directory by ftp hippa77 UNIX for Dummies Questions & Answers 3 10-06-2007 11:26 AM
copy files with directory structure adddy UNIX for Dummies Questions & Answers 3 12-11-2006 05:50 AM
Copy files from one directory to another hd2006 Shell Programming and Scripting 0 06-07-2006 11:29 AM
copy files from one directory to another directory zip_zip UNIX for Dummies Questions & Answers 5 09-14-2003 03:16 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-05-2006
HAA HAA is offline
Registered User
 

Join Date: Feb 2006
Posts: 24
Post Copy files from one directory to another

Hi

when copy the files from one directory to another as like below,it is tried to copy *.[Cc][Ss][Vv] as a file.
cp /home/rha/*.[Dd][Aa][Tt]

My objective is to copy all the files (don't care about case sensitive),
Thanks in advance for your valuable reply.
Reply With Quote
Forum Sponsor
  #2  
Old 07-05-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,698
Code:
find /home/rha -iname "*.dat" -exec cp {} /destination/dir \;
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0