[X-Unix] script question (cron - adobefnt*.lst)
Eugene Lee
list-themacintoshguy at fsck.net
Fri Jan 9 01:16:45 PST 2004
On Thu, Jan 08, 2004 at 03:58:20PM -0500, Don Montalvo wrote:
:
: these two seem to do the same thing:
:
: find / -name 'AdobeFnt*.lst' -exec rm -f {} \;
:
: (and)
:
: find / -name "AdobeFnt*.lst" -exec rm -f {} ';'
:
: first question: which script is best for using as cron job?
After the shell is done with variable expansion, both of these forms:
find / -name 'AdobeFnt*.lst'
find / -name "AdobeFnt*.lst"
come out to the same thing. However, the single-quoted string allows
less escape characters than the double-quoted string. The former may be
better if you are trying to list files that contain unusual characters
like the dollar sign ('$').
--
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/
More information about the X-Unix
mailing list