Why isn't /bin/rm very thorough
Henry C. Mensch
henry at mit-trillian.MIT.EDU
Sun May 18 07:06:03 AEST 1986
I guess I want to know why /bin/rm won't remove all the files
that match a particular pattern. In particular, I happen to have a
need to get rid of all the files that match the pattern *.letter.
/bin/rm only sees fit to remove those which actually have characters
to the left of the '.letter' part. Am I expecting too much? A sample
session is included below:
~Script started on Sat May 17 16:57:25 1986
~42 trillian /mit/h/e/henry -->
~42 trillian /mit/h/e/henry --> ls
~total 44
~ 3 .Xdefaults 2 .login.old 1 .rhosts
~ 1 .Xrc 1 .logout 1 .rnlast
~ 3 .cshrc 1 .mailrc 2 .rnsoft
~ 2 .cshrc.old 1 .mh_profile 1 .signature
~ 0 .emacs_keys 1 .msgsrc 1 .tiprc
~ 1 .emacs_vars 5 .newsrc 1 News
~ 1 .exrc 5 .oldnewsrc 1 dead.letter
~ 1 .history 1 .plan
~ 1 .letter 0 .pnewsexpert
~ 3 .login 1 .project
~43 trillian /mit/h/e/henry --> /bin/rm *.letter
~44 trillian /mit/h/e/henry --> ls
~total 43
~ 3 .Xdefaults 3 .login 0 .pnewsexpert
~ 1 .Xrc 2 .login.old 1 .project
~ 3 .cshrc 1 .logout 1 .rhosts
~ 2 .cshrc.old 1 .mailrc 1 .rnlast
~ 0 .emacs_keys 1 .mh_profile 2 .rnsoft
~ 1 .emacs_vars 1 .msgsrc 1 .signature
~ 1 .exrc 5 .newsrc 1 .tiprc
~ 1 .history 5 .oldnewsrc 1 News
~ 1 .letter 1 .plan
~45 trillian /mit/h/e/henry -->
~script done on Sat May 17 16:58:03 1986
Mailed replies are appropriate, since I don't always read
net.unix. I will summarize if there's enough interest.
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Henry Mensch | Technical Writer | MIT/Project Athena
henry at athena.mit.edu ..!mit-eddie!mit-athena!henry
More information about the Comp.unix
mailing list