| Author |
Message |
Shane (aka froggy) *nix forums beginner
Joined: 23 Feb 2005
Posts: 41
|
Posted: Fri Mar 11, 2005 6:15 pm Post subject:
Re: Hardware Identification (NICs)
|
|
|
On Fri, 11 Mar 2005 10:45:33 +0000, Justins local account wrote:
| Quote: | "Shane (aka froggy)" <spamspamuber.l33t.god@spamgmail.com> writes:
what I want is to issue a command at a prompt that will tell me the NIC's
I have installed on my box
the problem is I want only the 'rl0' or 'xl0' or w/ever the case may be
My guess is some grep or other needs piping in.. but guesses so far havent
got the desired result
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'
|
Thanks Justin that did the trick
if I was to put that regexp into words would it read
anchored to the beginning with no spaces or tabs of any number until the
colon then print?
--
Hardware, n.: The parts of a computer system that can be kicked |
|
| Back to top |
|
 |
Shane (aka froggy) *nix forums beginner
Joined: 23 Feb 2005
Posts: 41
|
Posted: Fri Mar 11, 2005 6:12 pm Post subject:
Re: Hardware Identification (NICs)
|
|
|
On Fri, 11 Mar 2005 12:48:14 +0000, jpd wrote:
| Quote: | Begin <ay8y4usboy.fsf@bsdclient1.pipemedia.net
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'
Doesn't the openbsd ifconfig have an -l option?
|
unfortunately no it doesnt
--
Hardware, n.: The parts of a computer system that can be kicked |
|
| Back to top |
|
 |
jpd *nix forums Guru
Joined: 22 Feb 2005
Posts: 877
|
Posted: Fri Mar 11, 2005 2:00 pm Post subject:
Re: Hardware Identification (NICs)
|
|
|
Begin <ay4qfis2qs.fsf@bsdclient1.pipemedia.net>
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
| Quote: | jpd <read_the_sig@do.not.spam.it.invalid> writes:
Begin <ay8y4usboy.fsf@bsdclient1.pipemedia.net
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'
Doesn't the openbsd ifconfig have an -l option?
Umm, I was answering the question asked (lame)
|
OP said he _guessed_ to have to resort to <handwave> greps and pipes </>,
which is a bit of a giveaway, methinks. But anyway.
| Quote: | I'd assumed the OP had RTFM, so didn't do so myself (still lame but
true). One day I'll learn.
|
:-)
--
j p d (at) d s b (dot) t u d e l f t (dot) n l . |
|
| Back to top |
|
 |
Justins local account *nix forums beginner
Joined: 10 Mar 2005
Posts: 20
|
Posted: Fri Mar 11, 2005 12:58 pm Post subject:
Re: Hardware Identification (NICs)
|
|
|
jpd <read_the_sig@do.not.spam.it.invalid> writes:
| Quote: | Begin <ay8y4usboy.fsf@bsdclient1.pipemedia.net
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'
Doesn't the openbsd ifconfig have an -l option?
|
Umm, I was answering the question asked (lame)
I'd assumed the OP had RTFM, so didn't do so myself (still lame but
true). One day I'll learn.
--
Justin Murdock |
|
| Back to top |
|
 |
jpd *nix forums Guru
Joined: 22 Feb 2005
Posts: 877
|
Posted: Fri Mar 11, 2005 11:48 am Post subject:
Re: Hardware Identification (NICs)
|
|
|
Begin <ay8y4usboy.fsf@bsdclient1.pipemedia.net>
On 2005-03-11, Justins local account <justin-nntp@pipemedia.net> wrote:
| Quote: | ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'
|
Doesn't the openbsd ifconfig have an -l option?
--
j p d (at) d s b (dot) t u d e l f t (dot) n l . |
|
| Back to top |
|
 |
Justins local account *nix forums beginner
Joined: 10 Mar 2005
Posts: 20
|
Posted: Fri Mar 11, 2005 9:45 am Post subject:
Re: Hardware Identification (NICs)
|
|
|
"Shane (aka froggy)" <spamspamuber.l33t.god@spamgmail.com> writes:
| Quote: | what I want is to issue a command at a prompt that will tell me the NIC's
I have installed on my box
the problem is I want only the 'rl0' or 'xl0' or w/ever the case may be
My guess is some grep or other needs piping in.. but guesses so far havent
got the desired result
|
ifconfig -a | awk -F: '/^[^ \t]+:/{print $1}'
--
Justin Murdock |
|
| Back to top |
|
 |
Shane (aka froggy) *nix forums beginner
Joined: 23 Feb 2005
Posts: 41
|
Posted: Fri Mar 11, 2005 7:20 am Post subject:
Hardware Identification (NICs)
|
|
|
I'm not sure how to google for this (that should cover my ass for some
flames)
what I want is to issue a command at a prompt that will tell me the NIC's
I have installed on my box
now before I get overloaded with 'ifconfig -a' or 'man ifconfig' replys
the problem is I want only the 'rl0' or 'xl0' or w/ever the case may be
My guess is some grep or other needs piping in.. but guesses so far havent
got the desired result
Also dmesg is no good because its also giving too much info
TIA
--
Hardware, n.: The parts of a computer system that can be kicked
\|/ ____ \|/
"@'/ ,. \'@"
/__|\__/|__\
\__U_/ |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|