[Techtalk] real life kewl text-processing

Akkana Peck akkana at shallowsky.com
Sat Jan 10 14:13:39 EST 2004


Hey, I have a micro-tip that might come in handy.

Have you ever wanted to do something with all your dot files
(files and directories that hold your various preferences and
settings, like .login, .mozilla, .gnome, .xinitrc and so forth),
perhaps back them up somewhere -- and found that using .* doesn't
work because that gets . and .. as well?

When I want to access all the dotfiles in the current directory,
but not . or .., I use this pattern: .??*
In English, that means: "Everything that begins with a dot, then
has at least two additional characters after the dot."

Of course, this won't match files like .a, which doesn't bother me.
You could make a pattern which would also match such files, but
it would be more difficult to type, whereas .??* is very easy.

	...Akkana


More information about the Techtalk mailing list