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 Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
copying files tjay83 Shell Programming and Scripting 4 08-25-2008 08:52 AM
Error Message while copying- Pls Help geeyess123 UNIX for Advanced & Expert Users 1 08-11-2008 06:47 AM
Copying Files and patilmukundraj SUN Solaris 1 12-30-2007 12:04 PM
Copying files in AWK koti_rama Shell Programming and Scripting 4 08-01-2007 09:55 PM
Copying files alpheusm UNIX for Dummies Questions & Answers 4 10-17-2002 10:18 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 09-29-2008
Registered User
 

Join Date: Jun 2008
Posts: 25
Hi
I want to remove all files which i copied .I tried the below one its not working

find <start directory> -name "<all my files type>" -exec rm -f {}

Thanks,
Akil
Reply With Quote
Forum Sponsor
  #9  
Old 09-29-2008
Registered User
 

Join Date: Jun 2008
Posts: 25
Hi nau,

when execute the below one ,its copying all files as well as subfolder files to target folder .I want to copy all files and sub directories to target folder.

find <start directory> -iname "<all my files type>" -exec cp {} <target_dir> \;


Thanks in advance
MR
Reply With Quote
  #10  
Old 09-29-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
If your cp understands the -r option, use that. Or run tar or cpio to copy a directory structure.
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 04:16 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