LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

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


hai!

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

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

the result is:

17.4.3.1.1.0.9.107.225.119.198 = 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
parker
LQ Newbie
 
Registered: Aug 2003
Posts: 10

Original Poster
Rep: Reputation: 0
newbie did it himself

*happy*
 
  


Reply


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
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
Can I use grep inside awk? Helene Programming 6 04-27-2004 12:58 AM
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:39 AM.

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