![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
what about good old
find /test/sds/data -name "*.*" -mtime -365 -exec ls -altr {} >file |
|
#3
|
||||
|
||||
|
Porter,
You missed the '\;' after '{}': Code:
find /test/sds/data -name "*.*" -mtime -365 -exec ls -altr {} \; >file
|
||||
| Google The UNIX and Linux Forums |