Sinardy - Make sure you are using Korn shell. Make the first line #! /bin/ksh. A good reference is the O'Reilly book UNIX in a Nutshell. It is cheap and a thorough reference (not a tutorial). For example, on the -a and -D options that Kevin mentions, there are about a page of different file conditions that you can check for. If you have access to usenet newsgroups, there are some very active lists for the different flavors of UNIX. Dennis Williams DBA Lifetouch, Inc. [EMAIL PROTECTED]
-----Original Message----- Sent: Wednesday, December 05, 2001 4:30 AM To: Multiple recipients of list ORACLE-L Apologies for the last reply....the [ -d $FILENAME ] should be [ -a $FILENAME ]. Hope that helps, Cheers, Kev. "my computer beat me at chess but i won when it came to kick boxing." __________________ Kevin Thomas Technical Analyst Deregulation Services Calanais Ltd. (2nd Floor East - Weirs Building) Tel: 0141 568 2377 Fax: 0141 568 2366 http://www.calanais.com -----Original Message----- Sent: 05 December 2001 08:10 To: Multiple recipients of list ORACLE-L Hi all, Can someone recommend good unix mailing list by the way how to check the existence of a file ? My logic : if (findThisFile(/tmp/myfile.txt) == 0) echo "the file is exists" else echo "file not found" endif what is the unix function for findThisFile() Thank you, Sinardy Hoping Peace in Middle East and the rest of the World -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Sinard Xing INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Thomas, Kevin INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: DENNIS WILLIAMS INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).