[SLL] Scripting Question
Eric
eric at kahklen.com
Wed Oct 3 15:30:48 PDT 2007
I am biting the bullet and trying to learn more about shell and perl
scripting. I have two unrelated questions.
1. Using perl regular expression, how could I match a string followed
by a period and a digit? The string doesn't have to include the period
and digit though. For example, I'd want to match something like this:
string
string.2
but not:
strings
string9
string.
strings.2
So far I've come up with
/^string\.?[0-9]?/
2. I have a wireless card that I am trying to track since its
removeable. Sometimes it shows up as wlan0 or wlan1. The only thing
that differentiates it is the driver, since its different than the
others. How could I pull the driver info and relate it to wlan0 or wlan1?
Thanks for the help,
Eric
--
Eric Kahklen
Lynnwood, WA
206-595-2934
More information about the linux-list
mailing list