Re: -R switch in rm command doesn't...



On 2006-02-25, Gordon wrote:
I am trying to remove files which all have the same part of a file name
that exist in sub-directories of sub-directories - the -R switch only
seems to go down one level not two or more. is that just a limitation of
the -R switch, or am I doing something wrong?

What is the exact command you use?
What is the structure (with names) of the hierarchy?

If you supply a pattern with the -R option, it will only look in
directories that match that mattern.

--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
.



Relevant Pages

  • Re: -R switch in rm command doesnt...
    ... Gordon wrote: ... the -R switch, or am I doing something wrong? ... will remove foo and recursively remove all its subdirectories. ...
    (uk.comp.os.linux)
  • When to switch from SWITCH() to JOIN
    ... performance of SWITCH() and JOIN against MS Access ... Next I populate ALL of the rows and populate SOME of the fields via ... Does Microsoft Jet 4.0 OLEDB impose a limitation on SQL statement size - ...
    (microsoft.public.data.ado)
  • Re: Life On Mars
    ... >>> Gordon Davie ... The bit that sticks in my mind is that before the switch, ... villain had been ofered a cup of tea and a jam bun. ...
    (uk.media.tv.misc)
  • Re: 8-channel Audio A-B Switch recommendations
    ... Gordon M wrote: ... or two laptops with MOTU audio interfaces. ... backing tracks in a live show, and need to be able to switch between ... the output of my Mackie 800R preamp to my Mackie HDR24/96 recorder. ...
    (rec.audio.pro)
  • Re: -R switch in rm command doesnt...
    ... you want the find command with the "-exec rm" switch. ... piped into xargs -0, as in: ...
    (uk.comp.os.linux)