question-- Bourne (and C) SHELL (expression evaluation)
chris
chris at pixutl.UUCP
Tue Aug 19 06:18:16 AEST 1986
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
More information about the Comp.unix
mailing list