rm all *.orig files in subdirectories?

From: John Henderson (unjohn_at_pacbell.net)
Date: 02/19/05


Date: Sat, 19 Feb 2005 00:18:28 GMT

I'm using Fedora Core 2.

I'm trying to do rm -f -r *.orig to remove all files which end in .orig
from all subdirectories.

It only removes the files ending in *.orig from the top directory.

I thought -r was the recursive option to do subdirectories also?

Thanks for any help, John



Relevant Pages

  • Re: rm all *.orig files in subdirectories?
    ... > It only removes the files ending in *.orig from the top directory. ... filenames was for a directory, so rmdidn't recurse into it. ... > I thought -r was the recursive option to do subdirectories also? ...
    (linux.redhat)
  • rm all *.orig files in subdirectories?
    ... It only removes the files ending in *.orig from the top directory. ... I thought -r was the recursive option to do subdirectories also? ...
    (linux.redhat)
  • Re: rm all *.orig files in subdirectories?
    ... > It only removes the files ending in *.orig from the top directory. ... > I thought -r was the recursive option to do subdirectories also? ... Unlike DOS, it's the shell, not the command, that expands the wildcards. ... The last actually works in ksh/bash/zsh as well, ...
    (linux.redhat)
  • Re: installed modules - faq question 3.4 What am I doing wrong?
    ... and all its subdirectories and list all the files ending with ".pm". ... use Perl; ...
    (comp.lang.perl.misc)