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



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?

If foo is a directory in your current directory, then:

rm -R foo

will remove foo and recursively remove all its subdirectories (if it can). Is that what you expect?

Robert
.



Relevant Pages

  • Re: -R switch in rm command doesnt...
    ... On 2006-02-25, Gordon wrote: ... the -R switch, or am I doing something wrong? ... A Problem-Solution Approach (2005, Apress) ...
    (uk.comp.os.linux)
  • Re: use of unassigned local variable
    ... The issue is the compiler doesn't know whether any of the cases will have resulted in the creation of a Foo to assign to teh reference so it is uninitialized as far as the compiler is concerned. ... I am instantiating a class in a switch statement as there are a number ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: why is this happening ?
    ... Some consider it a wart on Tcl since you have to think long and hard to understand it's advantages. ... switch $foo { ... Because inside the switch, ...
    (comp.lang.tcl)
  • Re: "Did not find leading dereferencer" - new findings to an old puzzle
    ... You presumably don't want to rewrite your code not to use Switch; ... given ($foo) { ... But I would hardly recommend using bleadperl, or even one of the 5.9.x ... the source file is around 350 lines big. ...
    (comp.lang.perl.misc)
  • Re: The Big Switch
    ... my switch example may have been a bit to simple. ... 0x01 {puts foo} ... So the switch works if you can be sure to have the string 0x01 in the ... set cmd [lindex $opcodes $index] ...
    (comp.lang.tcl)