https://github.com/rhardih/btecho
Small command-line tool for writing a sequence of numbers as a binary tree in ascii
https://github.com/rhardih/btecho
binary-tree c cli command-line echo
Last synced: about 1 month ago
JSON representation
Small command-line tool for writing a sequence of numbers as a binary tree in ascii
- Host: GitHub
- URL: https://github.com/rhardih/btecho
- Owner: rhardih
- License: mit
- Created: 2017-01-18T23:09:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-18T23:30:11.000Z (over 8 years ago)
- Last Synced: 2025-01-24T20:41:33.960Z (3 months ago)
- Topics: binary-tree, c, cli, command-line, echo
- Language: C
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# btecho
Write integer arguments as a binary tree to the standard output.
## Installation
```bash
$ make && make install
```## Examples
```bash
$ echo 7 3 2 9 10 4 5 1 8 6 | btecho
|- 7
|- 9
| |- 10
| |- 8
|- 3
|- 4
| |- 5
| |- 6
|- 2
|- 1
``````bash
$ seq 5 | gshuf | tee /dev/tty | btecho
3
4
1
2
5
|- 3
|- 4
| |- 5
|- 1
|- 2
```