From owner-freebsd-questions Fri Feb 7 15:44:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA08543 for questions-outgoing; Fri, 7 Feb 1997 15:44:57 -0800 (PST) Received: from yoshida.com (gateway.yoshida.com [204.203.122.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA08536 for ; Fri, 7 Feb 1997 15:44:53 -0800 (PST) Received: from Yoshida-Message_Server by yoshida.com with Novell_GroupWise; Fri, 07 Feb 1997 15:44:40 -0800 Message-Id: X-Mailer: Novell GroupWise 4.1 Date: Fri, 07 Feb 1997 15:43:59 -0800 From: David Chamberlain To: freebsd-questions@freebsd.org Subject: Stupid shell question Mime-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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