Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Feb 1997 15:43:59 -0800
From:      David Chamberlain <DavidC@OIAPDX.yoshida.com>
To:        freebsd-questions@freebsd.org
Subject:   Stupid shell question
Message-ID:  <s2fb4de8.025@yoshida.com>

next in thread | raw e-mail | index | archive | help
I am very new to Unix and FreeBSD so forgive me...

I am trying to write an if statement in a shell script that executes a
series of lines if *any* file exists in a specified directory.  Ie:

if [ file exists in send dir ]
then
   do this
   and this
   etc
fi

Can someone tell me how to do this? Can someone also recommed
a good book on shell programming.  (Unix shell scripts for
dummies?)

Thanks,
David Chamberlain
Oregon International Airfreight
davidc@oiapdx.yoshida.com



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