Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!wjh12!pixel!pixutl!chris From: chris@pixutl.UUCP (chris) Newsgroups: net.unix,net.unix-wizards Subject: Re: question-- Bourne (and C) SHELL (expression evaluation) Message-ID: <29@pixutl.UUCP> Date: Mon, 18-Aug-86 16:18:16 EDT Article-I.D.: pixutl.29 Posted: Mon Aug 18 16:18:16 1986 Date-Received: Tue, 19-Aug-86 21:08:00 EDT References: <1751@ittatc.ATC.ITT.UUCP> <7028@utzoo.UUCP> <150@humming.UUCP> <626@mips.UUCP> Organization: xePIX Inc., Nashua, N.H. Lines: 21 Summary: more ways to check for file presence Xref: mnetor net.unix:5229 net.unix-wizards:7586 You can also do: ( ls foo ) || echo not there or, more cheaply: { ls foo ; } || echo not there and if you didn't want to see the output of the ls command, { ls foo >/dev/null 2>&1 ; } || echo not there Chris -- Chris Bertin : (603) 881-8791 x218 xePIX Inc. : 51 Lake St : {allegra|ihnp4|cbosgd|ima|genrad|amd|harvard}\ Nashua, NH 03060 : !wjh12!pixel!pixutl!chris