Home > Archive > Linux/Unix > December 2003 > Terminal QOD for 12-7-03





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Terminal QOD for 12-7-03
Boulware5

2003-12-07, 9:13 pm

The command ls *[1-32]would return which of the following files? (choose all that apply)

a. report1
b. report2
c. report22
d. report0
e. report32
f. report33
g. report64
prezbedard

2003-12-07, 10:17 pm

a. report1
b. report2
c. report22
e. report32
f. report33
Tarzanboy

2003-12-07, 11:21 pm

I agree with Prez...

Cheers,
TB
Papiya

2003-12-08, 7:56 am

Ditto.
mindmesh

2003-12-08, 9:52 am

Why the Report33?


Forget it.. Figured it out.. Duh!!
Papiya

2003-12-08, 9:56 am

The ls *[1-32] indicates a rande of any number between 1 and 32 any *single* number. Since the glob looks at any number of characters followed by a single character between 1 and 32, any string with a 3 in it (as it is within the range) would be matched.
Boulware5

2003-12-09, 8:52 pm

report1 report2 report22 report32 report33

Good job!
prezbedard

2003-12-09, 11:10 pm

I am just too damn good...
Boulware5

2003-12-09, 11:21 pm

heh now Prez is cocky and thinks he's a Linux guru.
prezbedard

2003-12-09, 11:27 pm

quote:
Originally posted by Boulware5
heh now Prez is cocky and thinks he's a Linux guru.


Now that would be the day!


I am good though damn good at what I haven't figured that one out yet...!!!
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net