Thanks for the assist, bro'. They got me
jumping-through-my-own-hindquarters busy here.
Lisa K., you wanted meaningful work? Move west and
I'll hook you up. Meaningful? Debatable. Work? Oh
yeah!
--S
- Kevin Lange <kgel_at_ppoone.com> wrote:
> Couple clarifications:
>
> 1. -a : file exists (any type of file)
> -d : file is a directory
> -f : file is a regular file (like Scott Said)
>
> 2. The test is not neccessary
>
> vFILE_NAME='The file in question'
>
> if [ -f ${vFILE_NAME} ]
> then
> echo "File is there. You do not have to spend
> hours recreating it."
> else
> echo "Arggghhh ! Who the heck deleted my file !!
> Where the heck is my
> gun!"
> fi
>
>
> -----Original Message-----
> Sent: Wednesday, December 05, 2001 11:00 AM
> To: Multiple recipients of list ORACLE-L
>
>
> This is untested and from memory, but:
>
> if [test -f <filename>]
> then
> echo "found"
> else
> echo "help, are you an idiot"
> fi
>
> --Scott
>
>
> --- Sinard Xing <sinardyxing_at_bcs-ach.com.sg> wrote:
> > 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: sinardyxing_at_bcs-ach.com.sg
> >
> > 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: ListGuru_at_fatcity.com (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).
>
>
> __________________________________________________
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> http://shopping.yahoo.com
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> --
> Author: Scott Shafer
> INET: sknd100_at_yahoo.com
>
> 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: ListGuru_at_fatcity.com (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: Kevin Lange
> INET: kgel_at_ppoone.com
>
> 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: ListGuru_at_fatcity.com (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).
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Scott Shafer
INET: sknd100_at_yahoo.com
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: ListGuru_at_fatcity.com (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).
Received on Thu Dec 06 2001 - 17:57:12 CST