awk

hi,
i 'm trynig to get information from a line but i have some problems:
my input is this line (for example):

IP-MIB::ipNetToMediaPhysAddress.4.10.0.0.1 = STRING: 0:6:8a:45:6d:5

and i want to have only this:

10.0.0.1 0:6:8a:45:6d:5

i tried with awk but but there are two FS in the same line,
so how can i do?
thank you in advance

unugly way to do it is to split the line on the "=" char and sed out everything you dont want.

or

use a regx

something like

#!/usr/bin/perl -w

$data="IP-MIB::ipNetToMediaPhysAddress.4.10.0.0.1 = STRING: 0:6:8a:45:6d:5";

if ($data =~ /(\d+\.\d+\.\d+\.\d+) = STRING: (.*)/) { print "Text:$1\t$2\n" };
awk '{gsub(/^.*Address.[0-9]./,"");print $1,$NF}'

awk '{printf("%s%s \n", substr($1,33,10),substr($3,7));}' tst

where "tst" contains your input line.

raguram R