Firstly, define the tree
command as such:
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
The cd
to the directory in question and run tree
. You should get an output
such as this:
.
|____MultiModalSegmentation.ipynb
|____patient_109
| |____mr_T1
| | |____header.ascii
| | |____image.bin
| | |____patient_109_mr_T1.mhd
| |____mr_T2
| | |____header.ascii
| | |____image.bin
| | |____patient_109_mr_T2.mhd
|____patient_109.zip
source: https://coderwall.com/p/owb6eg