Am 2008-10-09 16:37:04, schrieb Boris Höffgen: > Hallo, > > wie formatiere ich mittels der Bash den folgenden String > 0:a:ef:45:7:ad:ad:ad in 00:0A:EF:45:07:AD:AD:AD? So: echo "0:a:ef:45:7:ad:ad:ad" | tr 'a-z' 'A-Z' | sed -e 's|^|:|;s|$|:|' | sed 's|:\(.\):|:0\1:|g' | sed 's|^:||;s|:$||' Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 +49/177/9351947 50, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature