Skip to main content

Thread: Variable help


i creating 4 character variable with:
od -an -n2 -x /dev/random
how can put colon in middle command?
e.g have 7a6f , want be: 7a:6f. how can achieve this?

code:
od -an -n2 -x /dev/random|sed s/\ ../\&:/
the first character output of od command space on debian (ie output " 1234") if ubuntu different (ie output "1234") use
code:
od -an -n2 -x /dev/random|sed s/../\&:/


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] Variable help


Ubuntu

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial