j
k
j a
j l
-----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
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
Back to the thread
Back to the list