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

Re: bash, grep, and regular expressions



On Fri, Feb 18, 2005 at 03:58:42AM -0800, Freddy Freeloader wrote:
[snip]
> I can't write an expression that parses the beginning of the filename 
> column.
How about:

ls -la | awk '$8 ~ /^[^.]/{print}' 

which returns all non-hidden files and directories.

-- asg



Reply to: