Post

tool: draw tree diagram

tool: draw tree diagram

Brief

This post will introduce the tool β€œdraw-tree-diagram.sh” that make you generate tree diagram given paths.

github repo

Usage

usage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# clone repository
$ git clone https://github.com/TUNGHUAYU/draw_tree_diagram.git
$ cd draw_tree_diagram/

# draw tree diagram
bash draw_tree.sh paths.txt 
πŸ“ Directory Tree:
β”œβ”€β”€ A/
β”‚   β”œβ”€β”€ B/
β”‚   β”‚   └── C/
β”‚   β”‚       └── D
β”‚   └── B1/
β”‚       β”œβ”€β”€ C1
β”‚       └── C2
└── C

paths.txt

1
2
3
4
5
A/
A/B/C/D
A/B1/C1
A/B1/C2
C
This post is licensed under CC BY 4.0 by the author.