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

Re: identifying Powerbook5,4 modem



On Mon, Jun 20, 2005 at 03:50:09PM +0200, Michael Schmitz wrote:
> > http://www.linuxant.com/drivers/files/listmodem_app_linux.tar.gz
> >
> > to identify my modem, but I got messages like
> >
> > % ./listmodem.sh                                                                          /tmp/xx
> > awk: cmd. line:169:             else if ( (vendor ~ "8086" && (
> > awk: cmd. line:169:                                            ^ unexpected newline or end of string
> > awk: cmd. line:177:                     device_id ~ "266D") ) || # Intel
> > awk: cmd. line:177:                                         ^ syntax error
> > awk: cmd. line:178:                     device_id ~ "266D") ) || # Intel
> > awk: cmd. line:178:                                           ^ syntax error
> > awk: cmd. line:184:                           (vendor ~ "1039" && device_id ~ "7013"))     # Sis
> > awk: cmd. line:184:                                                                        ^ syntax error
> >
> > Questions:
> >
> > 1. Has anybody got this script working?
> 
> You need to install the proper flavor of awk (gawk, IIRC) for the script
> to work.
> 
> 	Michael

I figured out that my awk pointed to gawk.  I tried mawk, and got

> mawk: line 121: regular expression compile failed (missing '(')
)
mawk: line 169: missing ) near end of line
mawk: line 178: extra ')'
mawk: line 178: extra ')'
mawk: line 184: extra ')'

I am clueless, I don't program awk so I don't know what the problem
might be.  Are there any other awk flavors to try?

Thanks,

Tamas



Reply to: