Jul 2, 2010 #1 ogniemi Technical User Nov 7, 2003 1,041 PL how to convert list of MAC accresses in following format: 0.d.60.4d.fa.f 0.9.6c.2e.37.8e to format: 00:0D:60:4D:FA:0F 00:09:6C:2E:37:8E regards.
how to convert list of MAC accresses in following format: 0.d.60.4d.fa.f 0.9.6c.2e.37.8e to format: 00:0D:60:4D:FA:0F 00:09:6C:2E:37:8E regards.
Jul 2, 2010 1 #2 PHV MIS Nov 8, 2002 53,708 FR One way: Code: awk -F. 'NF==6{printf "%02s:%02s:%02s:%02s:%02s:%02s\n",$1,$2,$3,$4,$5,$6}' /path/to/input > output Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
One way: Code: awk -F. 'NF==6{printf "%02s:%02s:%02s:%02s:%02s:%02s\n",$1,$2,$3,$4,$5,$6}' /path/to/input > output Hope This Helps, PH. FAQ219-2884 FAQ181-2886
Jul 2, 2010 #3 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE I don't want to nit-pick but... Code: awk -F. 'NF==6{[red]$0=toupper($0)[/red];printf "%02s:%02s:%02s:%02s:%02s:%02s\n",$1,$2,$3,$4,$5,$6}' /path/to/input > output HTH, p5wizard Upvote 0 Downvote
I don't want to nit-pick but... Code: awk -F. 'NF==6{[red]$0=toupper($0)[/red];printf "%02s:%02s:%02s:%02s:%02s:%02s\n",$1,$2,$3,$4,$5,$6}' /path/to/input > output HTH, p5wizard