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
find & copy files with absolute path jagnikam Shell Programming and Scripting 15 05-15-2008 03:00 PM
find files and copy into a directory balireddy_77 Shell Programming and Scripting 4 04-27-2007 12:38 AM
HOw to find and copy aaajohnson UNIX for Dummies Questions & Answers 1 05-18-2006 10:41 AM
Find directories not containing foo, and copy foo to them dkaplowitz Shell Programming and Scripting 6 06-29-2005 05:50 AM
find and copy string in a file vascobrito UNIX for Advanced & Expert Users 10 03-03-2004 11:14 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-11-2007
Registered User
 

Join Date: Jul 2007
Posts: 1
need to help to find and copy to a file

I am trying to search for files and copy them into a text file. Can anybody help me how to do that.

find /test/sds/data -name "*.*" -mtime -365 -exec ls -altr {} \

this is my find command and want to copy the result to a file.
Reply With Quote
Forum Sponsor
  #2  
Old 07-12-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
what about good old


find /test/sds/data -name "*.*" -mtime -365 -exec ls -altr {} >file
Reply With Quote
  #3  
Old 07-12-2007
Shell_Life's Avatar
Registered User
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Porter,
You missed the '\;' after '{}':
Code:
find /test/sds/data -name "*.*" -mtime -365 -exec ls -altr {} \; >file
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:17 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