-exec question

From: Radhika Sambamurti (radhika_narendran@yahoo.com)
Date: Mon Apr 08 2002 - 10:41:26 EDT


Hi,

i am writing a small script in ksh to move files older than
7 days old. I am trying to use the -exec command to move
files. How can i use the mv command here?

here is my script;

find . -name \*inc -mtime +7 -exec mv /usr/tmp {} \;

where i am trying to move files to /usr/tmp

this is not working.
any help is appriciated.
thanks,
radhika

=====
It's all a matter of perspective. You can choose your view by choosing where to stand.
--Larry Wall

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:10 EDT