Skip to content
/ btecho Public

Small command-line tool for writing a sequence of numbers as a binary tree in ascii

License

Notifications You must be signed in to change notification settings

rhardih/btecho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

btecho

Write integer arguments as a binary tree to the standard output.

Installation

$ make && make install

Examples

$ echo 7 3 2 9 10 4 5 1 8 6 | btecho
|- 7
   |- 9
   |  |- 10
   |  |- 8
   |- 3
      |- 4
      |  |- 5
      |     |- 6
      |- 2
         |- 1
$ seq 5 | gshuf | tee /dev/tty | btecho
3
4
1
2
5
|- 3
   |- 4
   |  |- 5
   |- 1
      |- 2

About

Small command-line tool for writing a sequence of numbers as a binary tree in ascii

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages