[lms-en] [Fwd: mac address]

A.L.E.C alec at alec.pl
Sun May 20 09:53:12 CEST 2007

Dan Broscoi wrote:

> I'm working on a set of scripts for CISCO routers, and for lms-makearp 
> (lms-make-cisco-arp)
> i'm stuck in mac address format
> Now, lms exports in 00:11:22:33:44:55 format... and i need it in 
> 0011.2233.4455 format.
> i have a example to convert
> echo "00:11:22:33:44:55" |awk -F":" '{print $1$2"."$3$4"."$5$6}'
> how can i make the script to output in this mode ?

check manual for your database engine for string functions. You can also 
use perl on generated file after script execution. One command:

perl -pi -e 

Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.alec.pl

lms-en mailing list
lms-en at lists.lms.org.pl

More information about the lms-en mailing list