Jeff Weisberg on Wed, 9 Apr 2003 14:06:09 -0400 |
| Anyone know a common utility that can convert radix? | | $ radix -b 8 | 1000 | $ radix -h 31 | 1F | $ | | Yes, it's a very short perl program, but it's also a fundamental | enough task that I'd be interested in a solution that I can find on | machines I just happen to be on, without having to go find my custom | tool. I was hoping for a flag to od, but no. 'bc' and 'dc' % dc -e 2o8p 1000 % dc -e 16o31p 1F % echo 'obase=2; 8' | bc 1000 % echo 'obase=16; 31' |bc 1F --jeff _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|