Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Any neat trick to convert print -rl -- **/** into a tree?
- X-seq: zsh-users 21937
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Any neat trick to convert print -rl -- **/** into a tree?
- Date: Sat, 17 Sep 2016 17:54:57 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=YyfPYq8dIdTgLHoCzyqasq2FZVL388TPD74kN1teqiM=; b=wVnuEIJmsUoo/f2p5PaF6BU15C8NYJC6dikzsWMYL1NskHs3WDTmAkIF4au8T1FdOJ E+kDGPXTRM8bwKoth1pOXTMkaCHcid8pbnzxn7a9RMARXe1DmBnwNwfZBjUgJ2acV4m7 tA8armz4ZbAU8at1QkEjnj8oaVb8IWibIvms8j+xkAEdTr9XGJmNU61u5ICEqEqajwUu mkUPPrYjRxSTR0pYJmM/p4WQWuKgUaRlxYWfL2bbeResQ9S38NxED7DMkiBKQkecAbZS k0I5PqMKX+5VIIUOa8dGnG7q7Ut7+qMihgXT7jdk3EqFm9NhnJSPdRPTT4EgLRFyHV6U h5Xw==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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