[Ilugc] One Day One Command

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Sat Feb 19 19:46:57 2005

On Sat, 19 Feb 2005, Binand Sethumadhavan wrote:

On Sat, 19 Feb 2005 14:37:00 +0530 (IST), Bharathi Subramanian
<sbharathi@xxxxxxxxxxxxx> wrote:
$ rm f? -- Remove all files, whose name start with f and followed
           by single char.

$ rm f* -- Remove all files, whose name starting with f.

These wildcard expansions are actually performed by the shell. They
are better suited in a shell-related tip. rm does not do wildcard
expansions (for example, try rm 'f*') and hence their presence here
is misleading.

Here I am explaining, What will happen when you run the "rm f*".  And
I am NOT saying that, the rm command is expanding the wildcard. So I
feel, it will not lead to any misunderstanding. Anyway in future, I 
will try to put one statement abt the wildcards in the bottom.

Bye :)
-- 
Bharathi S

Other related posts: