Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Any neat trick to convert print -rl -- **/** into a tree?



Hello,
I'm blank at this but seeing wc -c > 60 various surprising Zsh
expansions I suspect that it can be done: converting **/** into a
tree, i.e. into output that looks like e.g. output of tree command (OS
X):

├── LICENSE
├── Makefile
├── README.md
├── TODO
├── _n-kill
├── awk
│   ├── input
│   └── levdist.awk
├── doc
│   ├── generate_single_file
│   ├── img
│   │   └── n-history2.png
│   ├── install.sh
│   ├── n-preview
│   └── zshnavigationtools.plugin.zsh

Can it be done? The tree could use only indentation with spaces, or
"|". "\", "-" characters, or the box-drawing characters.

Best regards,
Sebastian Gniazdowski


Messages sorted by: Reverse Date, Date, Thread, Author