Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!ncrlnk!ncr-sd!sceard!mrm From: mrm@sceard.Sceard.COM (M.R.Murphy) Newsgroups: comp.unix.questions Subject: Re: How do I ask "if NOT" in shell? Message-ID: <956@sceard.Sceard.COM> Date: 24 Oct 89 15:14:01 GMT References: <28381@shemp.CS.UCLA.EDU> Reply-To: mrm@Sceard.COM (M.R.Murphy) Organization: Sceard Systems, Inc. San Marcos, CA 92069 Lines: 8 >kirkaas@oahu.cs.ucla.edu (paul kirkaas) writes: >How can one say "if not" in a shellscript; that is, execute the body of >the "then" only if the argument of "if" returns a non-zero exit status? Might be a Good Thing to look up how && and || work, especially with { and }. -- Mike Murphy Sceard Systems, Inc. 544 South Pacific St. San Marcos, CA 92069 mrm@Sceard.COM {hp-sdd,nosc,ucsd,uunet}!sceard!mrm +1 619 471 0655