added README
authorgit <redacted>
Mon, 16 Feb 2026 10:13:34 +0000 (05:13 -0500)
committergit <redacted>
Mon, 16 Feb 2026 10:13:34 +0000 (05:13 -0500)
README.md [new file with mode: 0644]
todec

diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..f96d6a6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,20 @@
+##tohex
+
+ * `-l` - output numbers with lowercase characters
+ * `-m` - output only the converted numbers
+ * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
+ * `-p` - add `0x` prefix to the result
+
+##tobin
+
+ * `-m` - output only the converted numbers
+ * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
+ * `-p` - add `0b` prefix to the result
+
+##todec
+
+ * `-m` - output only the converted numbers
+ * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
+ * `-K` - divide the result by *1024* and append `K` to the result
+ * `-M` - divide the result by *1,048,576* and append `M` to the result
+ * `-G` - divide the result by *1,073,741,824* and append `G` to the result
diff --git a/todec b/todec
index feaff7efe354f721517ebc4fabd57c11e9c86ed3..5ef3a847d66b1603405b694ab78a049c9396d98f 100755 (executable)
--- a/todec
+++ b/todec
@@ -46,7 +46,7 @@ main() {
        
        stat=0  
        k=1; m=0; n=0; p='';
-       while getopts "bmnKMG" flag; do
+       while getopts "mnKMG" flag; do
                case "$flag" in
                        m) m=1; ;;
                        n) n=1; ;;