Re: hex2bin im string aufloesen [erledigt]

Thomas Moritz <[email protected]> Sun, 10 Apr 2011 22:12:02 +0200
Newsgroups gmane.linux.suse.programming
Organization -
Message-ID <[email protected]>
Am Sonntag, 10. April 2011 20:05:22 schrieb Thomas Moritz:

Sorry, jetzt hab' ich's:

> Das ist fast die Loesung:
> echo "obase=2;ibase=16;`i2cget -y 0 0x27 0 | cut -d 'x' -f2 | tr f F`" | bc

printf "%08d" $(echo "obase=2;ibase=16;`i2cget -y 0 0x27 0 | cut -d 'x' -f2 | tr a-f A-F`" | bc)

...oder geht es kuerzer? (ohne perl & Co.)

MfG Th. Moritz