* Steve Juranich ([EMAIL PROTECTED]) [020628 10:49]: > > ls -ad ~/.[^.]* > > I prefer: > > ls -ad ~/.??* > > > Many less keystrokes, but to each his own.
... but not quite the same effect. This shell glob won't catch a file called, say .g -- it requires 2 characters after the '.' . That's probably usually good enough, but not quite correct. Also, the -a isn't required to ls to see the dotfiles if they're supplied explicitly as in "ls -d .*". I'm not sure why it wasn't working for $OP. Another thing to note that's very convenient (and fewer still in the keystroke count) is 'ls -A', which lists all files (including dotfiles) except '.' and '..' . Also, since you're not specifying the directories on the command line to ls, it doesn't expand them by default, so no -d is necessary either. good times, Vineet -- http://www.doorstop.net/ -- "Computer Science is no more about computers than astronomy is about telescopes." -E.W. Dijkstra
pgpKHnMIEfJ58.pgp
Description: PGP signature