Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!cernvax!chx400!chx400!ugun2b!ugsc2a!fisher From: fisher@sc2a.unige.ch Newsgroups: comp.os.msdos.misc Subject: Re: how do you do this? Message-ID: <1991Feb28.094938.375@sc2a.unige.ch> Date: 28 Feb 91 07:49:38 GMT References: <1991Feb27.072015.7027@ucselx.sdsu.edu> Organization: University of Geneva, Switzerland Lines: 18 In article <1991Feb27.072015.7027@ucselx.sdsu.edu>, butler@saturn.sdsu.edu (Michael Butler) writes: > Does anyone know how to do the following in a msdos environment? > find . -name '*.bak' -exec rm {} ; You can use exactly (or almost exactly) the same syntax under msdos if you have taken the time to download the needed unix-like tools from any good archive site (e.g. Simtel20's directory [MSDOS.UNIX]). Several improved delete tools would acomplish the same thing, although with another syntax. For non-unix persons, the above means: find [all files in the] . [current directory and below, matching the] -name '*.bak' [and] -exec[ute the command] rm [i.e. del, on all these files] {} ; Under dos, the furthest you can go is finding all the *.bak on a physical drive (chkdsk /v | find "*.BAK"), but you'll need a way to add the "del" in front of every line... Markus Fischer, Dpt of Anthropology, Geneva CH