[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash, grep, and regular expressions



> I have ls aliased to ls -al.  What I've been attempting to do with grep 
> and regular expressions is list only non-hidden directories and/or 
> files.  I am unable to come up with an expression that will elimate 
> hidden files and return non-hidden files at the same time.

the last sentence above is a little misleading. ls does that by default.

so examples of what you want are:

.bashrc
something.cc
bin/

examples of what you dont want are:

.ssh/
.gnome2/

is this correct?

-matt zagrabelny



Reply to: