rimmern has asked for the wisdom of the Perl Monks concerning the following question:
00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus (rev 12)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #2) (rev 12)
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio (rev 12)
I figured I can split on the first " " and then split again on the ":".
But I cant figure out how to just split the string on the first " ".
Do I need a regex ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: splitting lspci output
by Paladin (Vicar) on May 17, 2006 at 22:58 UTC | |
|
Re: splitting lspci output
by GrandFather (Saint) on May 17, 2006 at 23:07 UTC | |
by Anonymous Monk on May 18, 2006 at 04:02 UTC | |
by GrandFather (Saint) on May 18, 2006 at 04:17 UTC | |
by HuckinFappy (Pilgrim) on May 18, 2006 at 05:54 UTC |