Take the 2-minute tour ×  I want to list all the directories
that start with . in the current directory. I don't want the
previous directory (..) to be listed so I had the regular
expression something like this. I am using csh  ls .[^.]*  It
works fine on UNIX variant platforms but in solaris, I am still
using the csh but it lists me only .. directory. How can I
specify the regular expression with the exact functionality in
Solaris. It works in bash but I have to use csh only as it is
guaranteed to be available on each SOLARIS box in our org.
share|improve this question grymoire.com/Unix/CshTop10.txt HTH.
I can't imagine why a bourne shell wouldn't be on all of your
solaris boxes. –  Will Hartung Sep 21 '11 at 5:12 Confirmed on
Solaris 9. I'd suggest using tcsh instead, but if you can't
count on bash I suppose you can't count on tcsh. Incidentally,
that's a file matching pattern, not a regular expression. I
think grep, as mu is too short suggested, is your best bet. – 
Keith Thompson Sep 21 '11 at 5:21 add c