Find Mac address

ip li | grep ether | awk '{print $2}'

1
By: minigeek
2012-05-14 23:22:18

What Others Think

Another under-use of awk. ip li | awk '/ether/ {print $2}' or use cut ip li | cut -d' ' -f10
MeaCulpa · 498 weeks and 1 day ago
I think invoking awk for this simple thing is costly. Instead this would be better. ip li| grep ether|tr -s " "|cut -d " " -f 3
ashwin · 496 weeks and 6 days ago
Utilizing Educational Software offers a wide degree of points of interest for the understudies. Click this to read more ideas. There are an immense number of informative gadgets anyway very few of them are significant according to the necessities of a particular point.
anonymous00 · 57 weeks and 4 days ago
There is nothing exceptional that could be said about this direct and unprotected base. Check this https://www.essaycheckerfree.com/toefl-gmat-gre-writing-with-online-essay-proofreader-help/ for more ideas about writing. The player has not updated the dividers of this base which isn't worthy in any capacity.
anonymous00 · 56 weeks and 6 days ago
Happy to see that the UTC Aerospace Systems' fabricated another MS-177 sensor is getting so much appreciation. You can visit online tool to get more tools about writing. This is the best in arrangement.
anonymous00 · 56 weeks and 6 days ago
By watching these photos, I can say that you are placing a stunning energy in Austin. You can visit www.sentencechecker.info/professional-run-on-sentence-checker/ for further knowledge. Ideally, after this visit, you would consider something new.
Ahmed74 · 53 weeks and 1 day ago
Despite the way that this Vimeo video is short, it is spreading the correct message. You can visit http://www.sentencecorrection.org/your-text-will-be-flawless-after-you-run-it-through-our-english-sentence-structure-checker/">http://www.sentencecorrection.org/your-text-will-be-flawless-after-you-run-it-through-our-english-sentence-structure-checker/ for more ideas. I am feeling brilliant to investigate the message present in it.
Ahmed74 · 53 weeks and 1 day ago
Chicago, on Lake Michigan in Illinois, is among the largest cities in the U.S. Famed for its bold architecture, it has a skyline punctuated by skyscrapers such as the iconic John Hancock Center, 1,451-ft. Willis Tower (formerly the Sears Tower) and the neo-Gothic Tribune Tower. MaxRemind top rank medical billing company of USA offers medical billing services in Chicago, medical credentialing services and home health agency software in Chicago.
stevematt · 44 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: