[comp.binaries.ibm.pc.d] Using stuff to grab selected files

emb978@leah.Albany.Edu (Eric M. Boehm) (01/20/89)

Why is it that you can use a construction like

stuff / ! -name *.obj ! -name *.exe ! -name *.bak  (this is from stuff.doc)

to grab all files not matching *.obj, *.exe and *.bak but you cannot use

stuff / -name *.obj -name *.exe -name *.bak

to grab all files matching *.obj, *.exe and *.bak? If I try this, I get
nothing back. I have not looked at the source but it appears that stuff
finds all the *.obj and then tries to find *.exe in the *.obj, etc. The only
way I found around this is:

stuff / -name *.obj >  list
stuff / -name *.exe >> list
stuff / -name *.bak >> list

This takes a long time since I have a 300MB disk and the disk is scanned
three times. I have read stuff.doc but I am unable to find any other
solutions. Does any have any ideas? Please respond via E-MAIL.

Eric M. Boehm
EMB978@LEAH.ALBANY.EDU
EMB978@ALBNY1VX.BITNET