Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ysub!psuvm!cunyvm!rohvm1!rs0vrd Organization: Rohm and Haas Company Date: Friday, 14 Jun 1991 10:51:09 EST From: Ross Druker Message-ID: <91165.105109RS0VRD@ROHVM1.BITNET> Newsgroups: comp.unix.shell Subject: Re: ksh: Checking for file existence References: <91165.101842RS0VRD@ROHVM1.BITNET> Of course, after posting this, I walked away for 20 minutes, then came back and thought of a simple way of doing this. Forgetting about the "test" command, doing if ls *.data > /dev/null 2>&1 returns true if any files exist and redirects standard out and standard error to null. But I'm curious as to whether there's any other way. Sorry for the wasted time if not.