pathname expansion part two

2010-10-15 Thread javajo91
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 direc

Re: Question regarding pathname expansion

2010-10-15 Thread javajo91
Oops - never mind. I see my error. ls /usr* will list all files within usr & usr2 directories. the / is needed to specify the files within. Thank you! javajo91 wrote: > > Morning - > > I'm reading "Learning the bash Shell" by Newham & Rosenblatt and h

Question regarding pathname expansion

2010-10-15 Thread javajo91
Morning - I'm reading "Learning the bash Shell" by Newham & Rosenblatt and have a question regarding pathname expansion and wildcards. They mention that wildcards can be used as part of a pathname. The example they give is that if you wanted to list all the files in the /usr & /usr2 directories