Re: wvdial doesn't detect agrmodem 11c1:048c

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

 



On 15 March 2010 02:25, Antonio Olivares <olivares14031@xxxxxxxxx> wrote:
> Robin,
>
> What does output of
> # lsmod | grep 'agr*'
> show?
>
> and output of
> # dmesg | grep 'agr*'
>
> show?

Antonio, grep uses regex (regular expressions), not globbing (which is
what the shell uses).

In regex, '*' means "0 or more of the previous character", so 'agr*'
matches 'ag', 'agr', 'agrr', 'agrrrrrrrrr', etc. Thus Robin's output
contained every line with 'ag' in it.

The globbing you're attempting here is actually the way regex works by
default. "grep 'agr'" finds any line containing the sequence 'agr' no
matter what else is on that line.

If you need a wildcard, you have to use '.', which matches any
character once, followed by '*'. E.g., "grep agr.*driver" would find
the line "agrserial: Loading module Agere Modem Interface driver
version 2.1.60.0.Linspire (2005-11-16)"

HTH,
-- 
Joshua Crawford ... http://geocities.com/mortarn

http://www.rewardscentral.com.au/Join/Default.aspx?refer=mortarn
Be rewarded! Join RewardsCentral today!

[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux