fix typo
[baseconv.git] / README.md
1 #Installation
2
3 Create a directory for local executables (`~/.local/bin/` is recommended) and add it to `PATH` (add `export PATH="${PATH}:${HOME}/.local/bin"` to your `~/.profile` - it may also be `~/.bash_profile` or `~/.zprofile` for ZSH), copy the files into that folder.
4
5 #dc branch
6
7 Using the dc-based branch might be beneficial for systems where `bc` is a `dc` wrapper, `printf` command does not support base conversion, etc.
8
9 In short, it is even more portable.
10
11 #Usage
12
13 ##tohex
14
15 * `-l` - output numbers with lowercase characters
16 * `-m` - output only the converted numbers
17 * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
18 * `-p` - add `0x` prefix to the result
19
20 ##tobin
21
22 * `-m` - output only the converted numbers
23 * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
24 * `-p` - add `0b` prefix to the result
25
26 ##todec
27
28 * `-m` - output only the converted numbers
29 * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
30 * `-K` - divide the result by *1024* and append `K` to the result
31 * `-M` - divide the result by *1,048,576* and append `M` to the result
32 * `-G` - divide the result by *1,073,741,824* and append `G` to the result