The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix shell script for finding top ten files of maximum size abhilashnair UNIX for Dummies Questions & Answers 10 02-17-2008 10:50 PM
Help with finding files bbbngowc Shell Programming and Scripting 1 12-10-2007 04:36 PM
finding duplicate files by size and finding pattern matching and its count jerome Sukumar Shell Programming and Scripting 2 12-01-2006 01:20 AM
finding files in Unix xiamin Shell Programming and Scripting 7 12-26-2005 03:18 AM
Finding files with UTF-8 BOM kotoponus UNIX for Dummies Questions & Answers 0 05-20-2005 06:28 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-13-2001
Registered User
 

Join Date: Jul 2001
Posts: 2
Unhappy Finding files in Unix

I need help with the syntax to serach a directory and all the folders in that directorys for a single pdf file. I would than like to move that file to another folder. I don't know if this is possible with one command. Please Help.
Forum Sponsor
  #2  
Old 07-13-2001
DPAI's Avatar
Registered User
 

Join Date: Jul 2001
Posts: 112
%xargs cp << end
`find . -depth -name a.pdf -print`
`echo ./test/.`
end


Please ensure that there are no 2 copies

Last edited by DPAI; 07-13-2001 at 01:53 PM.
  #3  
Old 07-13-2001
Registered User
 

Join Date: Jul 2001
Location: California
Posts: 42
Wink

try this

find /DirectoryName -name "xxx.pdf" -exec mv {} /WhereFileGoes \;

i.e.
find /project/unix -name "test.pdf" -exec mv {} /team \;
__________________
:rolleyes:
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:32 AM.


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