Bad status in UNIX Script

Hello,

sorry for my questions about that below script but i have an error that i don't understand.
It seems that my find command is not working fine but for me the command is ok

Thanks for your help

=====================================
/usr/IBM/HTTPServer/apache_cache
/usr/IBM/HTTPServer/apache_cache/toto.txt
find: bad status-- �name
find: bad status-- �*�
find: bad status-- �mtime
find: bad status-- +1
find: bad status-- �exec
find: bad status-- rm
find: bad status-- {}
find: bad status-- ;

==========================================

#!/bin/sh
# About the script
#==============================================================================
# author       : Vision IT Group
# version      : 1.0
# date written : January 2014
# application  : delete -mtime +1 files in the apache_cache
#==============================================================================
#
################################ PATH ###########################################

DATUM1="$(date +%y%m%d.%H%M%S)"
NAME="CacheIHS_Logs"
PATHCACHELOGS="/usr/IBM/HTTPServer/logs/"
LOG_FILE=$PATHCACHELOGS/$NAME.log

################################ CODE ###########################################
#echo "find files to delete in the cache"
#echo "---------------------------------"
find "/usr/IBM/HTTPServer/apache_cache" �name �*� �mtime +1 �exec rm {} \;

#Define Logfilename
#------------------
echo "Clear done ..."$DATUM1 >> $LOG_FILE
echo "---------------------------------------" >> $LOG_FILE
-name �*'

Why are you using two different single-quote characters as the delimiters?
Or perhaps that was just how your script was copied into the message. But, I would try to use the ' character that is on the same key as the " character.

Hello,

thanks but the same result with simple quote ..Sorry also without quote

Thanks for your help

The top of your script has a variable for NAME, but then your command to find appears to be looking for * or all files. Confused by this.

The problem are the chars � � � that are similar but different: the probelm occurs when copy and paste code in msoffice:

find /usr/IBM/HTTPServer/apache_cache -name \* -mtime +1 -exec rm {} \;