Path: utzoo!utgpu!watmath!clyde!att!rutgers!tut.cis.ohio-state.edu!bloom-beacon!gatech!purdue!decwrl!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpclscu!shankar
From: shankar@hpclscu.HP.COM (Shankar Unni)
Newsgroups: comp.unix.wizards
Subject: Re: Testing for non-empty wildcards
Message-ID: <26270004@hpclscu.HP.COM>
Date: 5 Dec 88 21:34:31 GMT
References: <502@alice.marlow.uucp>
Organization: HP NSG/ISD California Language Lab
Lines: 27

> 	foreach i (sccs/p.*)
> 		set file = something_horrible
> 		delta sccs/s.$file
> 		get sccs/s.$file
> 	end
  ....
> 
>                 set nonomatch
>                 set a = sccs/p.*
>                 if ( "$a" == "sccs/p.*" ) exit 0
> 

Try something a little nicer (if a little more cpu-expensive):

    find sccs -name 'p.*' -exec something_or_other

or

    find sccs -name 'p.*' -print | while read file
	do
	    # list of commands on $file
	done

(/bin/sh or /bin/ksh example)

---
Shankar.