On Fri, 29 Feb 2008, John R Pierce wrote:
ip also has a one-line output mechanism:
ip -o link show
...
I do wish the mothership would update its standard network configuration
scripts to use ip(8) rather than the legacy ifconfig(8). Rather than using
the legacy eth0:1 style interface a
ip also has a one-line output mechanism:
ip -o link show
...
I do wish the mothership would update its standard network configuration
scripts to use ip(8) rather than the legacy ifconfig(8). Rather than
using the legacy eth0:1 style interface aliases, allow a single
/etc/sysconfig/ne
On Thu, 28 Feb 2008, Paul Heinlein wrote:
On Thu, 28 Feb 2008, Wojtek Pilorz wrote:
On Thu, Feb 28, 2008 at 08:13:17AM -0600, Les Mikesell wrote:
Jerry Geis wrote:
I am trying to grab the mac address for eth0 on centos 5.1 with
ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything.
On Thu, 28 Feb 2008, Wojtek Pilorz wrote:
On Thu, Feb 28, 2008 at 08:13:17AM -0600, Les Mikesell wrote:
Jerry Geis wrote:
I am trying to grab the mac address for eth0 on centos 5.1 with
ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything.
What am I not doing right?
ifconfig | gre
On Thu, Feb 28, 2008 at 08:13:17AM -0600, Les Mikesell wrote:
> Jerry Geis wrote:
> >I am trying to grab the mac address for eth0 on centos 5.1 with
> >
> >ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything.
> >
> >What am I not doing right?
> >
> >ifconfig | grep eth0 | cut -d ' ' -f 1
On Thu, 2008-02-28 at 08:51 -0500, Toby Bluhm wrote:
> Jerry Geis wrote:
> > I am trying to grab the mac address for eth0 on centos 5.1 with
> >
> > ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything.
> >
> > What am I not doing right?
> >
> > ifconfig | grep eth0 | cut -d ' ' -f 1 give
On Thu, Feb 28, 2008 at 8:47 AM, Jerry Geis <[EMAIL PROTECTED]> wrote:
> I am trying to grab the mac address for eth0 on centos 5.1 with
>
> ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything.
>
> What am I not doing right?
>
> ifconfig | grep eth0 | cut -d ' ' -f 1 gives me eth0 but a
On Thu, Feb 28, 2008 at 08:56:49AM -0500, Max Hetrick wrote:
> Toby Bluhm wrote:
> > ifconfig | grep eth0 | tr -s ' ' ' ' | cut -d ' ' -f 5
> ifconfig | grep eth0 | cut -d ' ' -f 11
ifconfig | sed -n 's/^eth0.*HWaddr \([^ ]*\).*$/\1/p'
--
rgds
Stephen
___
Jerry Geis wrote:
I am trying to grab the mac address for eth0 on centos 5.1 with
ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything.
What am I not doing right?
ifconfig | grep eth0 | cut -d ' ' -f 1 gives me eth0 but anything else
like -f 2, -f 3 etc
I get nothing.
If sed had
On Thu, Feb 28, 2008 at 08:56:49AM -0500, Max Hetrick enlightened us:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Toby Bluhm wrote:
>
> > There's multiple spaces in the output that cut is hitting - use tr to
> > reduce them.
> >
> > ifconfig | grep eth0 | tr -s ' ' ' ' | cut -d ' ' -f
ip is probably a better tool (than ifconfig)
ip link show eth0 | tr -s " " | cut -d" " -f3
Max Hetrick wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Toby Bluhm wrote:
There's multiple spaces in the output that cut is hitting - use tr to
reduce them.
ifconfig | grep eth0 | tr -s ' ' '
On Thu, Feb 28, 2008 at 2:56 PM, Max Hetrick <[EMAIL PROTECTED]> wrote:
> Toby Bluhm wrote:
>
> > There's multiple spaces in the output that cut is hitting - use tr to
> > reduce them.
> >
> > ifconfig | grep eth0 | tr -s ' ' ' ' | cut -d ' ' -f 5
>
> Or:
>
> ifconfig | grep eth0 | cut -d '
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Toby Bluhm wrote:
> There's multiple spaces in the output that cut is hitting - use tr to
> reduce them.
>
> ifconfig | grep eth0 | tr -s ' ' ' ' | cut -d ' ' -f 5
Or:
ifconfig | grep eth0 | cut -d ' ' -f 11
-BEGIN PGP SIGNATURE-
Version:
Jerry Geis wrote:
I am trying to grab the mac address for eth0 on centos 5.1 with
ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything.
What am I not doing right?
ifconfig | grep eth0 | cut -d ' ' -f 1 gives me eth0 but anything else
like -f 2, -f 3 etc
I get nothing.
Jerry
The
14 matches
Mail list logo