[Ilugc] One Day One GNU/Linux Command (RM)

  • From: knura@xxxxxxxxx (Arun Khan)
  • Date: Sun Jun 22 21:10:50 2008

On Saturday 21 Jun 2008, Masatran, R. Deepak wrote:

* Bharathi Subramanian <sbharathi@xxxxxxxxxxxxx> 2008-06-20

$ 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.

It would be better if you indicated that wildcard expansion is done
by the shell, and not by "rm".

Why?  IMO, it is redundant. Those who understand shell programming 
already know that the shell expands the wildcard.  Those who don't, to 
them it does not matter whether the shell or rm expands the filename.

-- 
Arun Khan

Other related posts: