Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2002 17:10:58 +0200 (MEST)
From:      Lutz Kittler <Lutz.Kittler@sse-erfurt.de>
To:        Radhika Sambamurti <radhika_narendran@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   -exec script question
Message-ID:  <15537.45826.855616.629271@master.sse-erfurt.de>
In-Reply-To: <20020408135739.74130.qmail@web9307.mail.yahoo.com>
References:  <20020408135739.74130.qmail@web9307.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Radhika Sambamurti writes:
 > 
 > find / -name \*inc -mtime +7 -exec mv /usr/tmp {};
 > 
 > would this be correct?
 > 

I think you must escape ";" :

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

  lutz


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15537.45826.855616.629271>