Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-12-2003, 01:10 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 10

Rep: Reputation: 0
newbie needs help for grep and awk


i'm running a small shell script doing the following:

snmpget -c COMMUNITY SWITCH-IP OID.[MAC in decimal format]

the result is: = Hex: 00 09 6B E1 77 C6

But i'd need that only the last 17 digits (the Hex-String only) is displayed.

Any ideas?

TIA, Richie
Old 08-12-2003, 04:24 AM   #2
LQ Newbie
Registered: Aug 2003
Posts: 10

Original Poster
Rep: Reputation: 0
newbie did it himself



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use grep inside awk? Helene Programming 10 09-29-2015 08:48 PM
Extracting text with grep or awk? UrbanDruid Linux - Newbie 5 04-07-2005 02:57 PM
Bash script question (grep and awk) hamish Linux - Software 6 04-06-2005 03:14 PM
Newbie playing with Awk and Grep Helene Programming 6 04-15-2004 02:08 AM
Running a shell command containing awk and grep within a C program Linh Programming 1 06-05-2003 06:51 PM

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration