| description | portable shell scripts for number base conversion |
| last change | Sat, 16 May 2026 06:03:26 +0000 (02:03 -0400) |
| URL | git://git.datadissipation.net/baseconv.git |
| https://git.datadissipation.net/baseconv.git | |
| content tags |
Using the dc-based branch might be beneficial for systems where bc is a dc wrapper, printf command does not support base conversion, etc.
In short, it should be even more portable.
-l - output numbers with lowercase characters-m - output only the converted numbers-n - output all in a single line (space-separated with -m, semicolon as the separator otherwise)-p - add 0x prefix to the resulting numbers-m - output only the converted numbers-n - output all in a single line (space-separated with -m, semicolon as the separator otherwise)-p - add 0b prefix to the resulting numbers-m - output only the converted numbers-n - output all in a single line (space-separated with -m, semicolon as the separator otherwise)-K - convert the results into K units (2^10^)-M - convert the results into M units (2^20^)-G - convert the results into G units (2^30^)| 2026-05-16 | git | update readme bc | commit | commitdiff | tree | snapshot (tar.zst tar.gz zip) |
| 2026-03-19 | git | fix typo | commit | commitdiff | tree | snapshot (tar.zst tar.gz zip) |
| 2026-03-19 | git | expand readme | commit | commitdiff | tree | snapshot (tar.zst tar.gz zip) |
| 2026-02-16 | git | made "usage:" error message take $0 instead of being... | commit | commitdiff | tree | snapshot (tar.zst tar.gz zip) |
| 2026-02-16 | git | added README | commit | commitdiff | tree | snapshot (tar.zst tar.gz zip) |
| 2026-02-16 | git | small optimization for "tohex" | commit | commitdiff | tree | snapshot (tar.zst tar.gz zip) |
| 2026-02-15 | git | refined "usage:" error message | commit | commitdiff | tree | snapshot (tar.zst tar.gz zip) |
| 2026-02-15 | git | initial public commit | commit | commitdiff | tree | snapshot (tar.zst tar.gz zip) |
| 4 weeks ago | dc | shortlog | log | tree |
| 4 weeks ago | bc | shortlog | log | tree |