[Top][All Lists]

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

pathname expansion part two

From: javajo91
Subject: pathname expansion part two
Date: Fri, 15 Oct 2010 12:01:11 -0700 (PDT)

Reading "Learning the bash shell" and came across a passage that i simply
cannot get to work:

"For example, if you wanted to list all of the files in the directories /usr
and usr2, you could type ls /usr*.  If you were only interested in the files
beginning with the letters b and e in these directories, you could type ls
/usr*/[be]* to list them." 

When i type /usr*/[be]* i do not get all the files within /usr that begin
with a b or an e but instead get ALL the files within /usr/bin and /usr/etc.

Am i reading this correctly?
View this message in context: 
Sent from the Gnu - Bash mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]