|
|
|
|
|
|
| Author |
Message |
Frank Cusack *nix forums Guru Wannabe
Joined: 02 Mar 2005
Posts: 215
|
Posted: Thu Mar 02, 2006 6:51 am Post subject:
Re: search and move
|
|
|
On 1 Mar 2006 22:07:29 -0800 "arunkumar610@gmail.com" <arunkumar610@gmail.com> wrote:
| Quote: | How can i pass the the output of find command as sorce argument for mv
command ?
The scenario is i have to move some files which have modified 100
days before from current directory to /tmp directory.
When i execute the below command, it displayes the expected file.
find ./ -name "*_AUDIT*.Z" -mtime +100 -print
But how can i pass the output to mv command? Please help me to execute
the below uncompleted command.
find ./ -name "*_AUDIT*.Z" -mtime +100 -print | xargs mv <what should
be the source?> /tmp
|
See xargs(1) |
|
| Back to top |
|
 |
arunkumar610@gmail.com *nix forums beginner
Joined: 02 Mar 2006
Posts: 2
|
Posted: Thu Mar 02, 2006 6:07 am Post subject:
search and move
|
|
|
How can i pass the the output of find command as sorce argument for mv
command ?
The scenario is i have to move some files which have modified 100
days before from current directory to /tmp directory.
When i execute the below command, it displayes the expected file.
find ./ -name "*_AUDIT*.Z" -mtime +100 -print
But how can i pass the output to mv command? Please help me to execute
the below uncompleted command.
find ./ -name "*_AUDIT*.Z" -mtime +100 -print | xargs mv <what should
be the source?> /tmp |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Nov 22, 2008 10:08 am | All times are GMT
|
|
Libro de autoayuda | Credit Card | Hosting | Credit Report | Mobile Phones
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|