Globbing

Oliver Fromme check+jwaffx00rspcnfu1 at fromme.com
Fri Feb 15 08:22:34 PST 2008


Rahul Siddharthan wrote:
 > Another thing that has bitten me is trying to remove all my config
 > files/directories, that begin with a ".", thusly
 >  rm -rf .*
 > Luckily I had backups.

Another reason to use zsh.  :-)  The expansion of a
glob expression never contains "." or "..".

Best regards
   Oliver


-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd





More information about the Kernel mailing list