Path: utzoo!attcan!uunet!ateng!chip From: chip@ateng.ateng.com (Chip Salzenberg) Newsgroups: comp.unix.wizards Subject: Re: Testing for non-empty wildcards Message-ID: <1988Dec26.094726.10596@ateng.ateng.com> Date: 26 Dec 88 14:47:25 GMT References: <502@alice.marlow.uucp> <26270004@hpclscu.HP.COM> Organization: A T Engineering, Tampa, FL Lines: 26 According to shankar@hpclscu.HP.COM (Shankar Unni): > > find sccs -name 'p.*' -print | while read file > do > # list of commands on $file > done Or: them="`find SCCS -name "p.*" -print | sed 's#^SCCS/p\.##`" if [ ! "$them" ] then echo "Nothing is checked out!" else for f in $them do get -s -p SCCS/s.$f | diff - $f done fi This has the nice feature of collecting all the names into a variable for examination and possible re-use. -- Chip Salzenberg or A T Engineering Me? Speak for my company? Surely you jest! "It's no good. They're tapping the lines."