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

Re: bash, grep, and regular expressions



Josh Narins wrote:
egrep, my son, the future is in egrep

You'll be able to match on word boundaries with "\b"

Of course, what I found actually works was

ls -al | egrep "\B\."

hth,
Josh

P.S. bash 2.05b.0(1)-release


I have that version of bash installed. It's the version that both sarge and sid use.

The output from that command lists one directory. ".." At least it didn't return either an empty set or everything.

What kernel are you running?



Reply to: