delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/08/11:25:13

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Remove contents of directories recursively
Date: 8 Oct 1999 12:00:42 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 23
Message-ID: <7tkmda$l0c$2@antares.lu.erisoft.se>
References: <37fdd3e4 DOT 0 AT nnrp1 DOT news DOT uk DOT psi DOT net>
NNTP-Posting-Host: propus-144.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ya'qub (rg3 AT ic DOT ac DOT uk) wrote:
: Greetings,
:     I would like to clean up a directory from all files with, let's say,
: extension .obj while preserving the directory structure. I thought that
: using rm -r *.obj at the top level directory would do the job.
: Unfortunately, it only deletes the *.obj files that are in the the top level
: directory but not those found in sub-directories further down. Can anyone
: tell me how to do this (if possible)?

Try "find . -iname '*.obj' -exeec rm {} \;". Perhaps the curly braces
must be backslashed too.

: Off topic - I think some time ago in the eternal debates of *nix vs Windoze,
: someone mentioned something about Hotmail servers running Linux. Does anyone
: remember the web link that was given? Thanks

I don't know the link, but I thought they used to use FreeBSD and now
(after Microsnoft took over) Solaris.


Shostakovich, String Quartet 7,

							MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019