Several scripts exist for converting a list of path names into tree form:
- my own treeify.pl
- treeify.rs by Loïc Damien
- treeify.py by Hakril
All these scripts work with tar -tf …
output; for example:
$ tar -tf foo.tar | treeify foo ├─bar │ ├─myfile.txt │ └─yourfile.txt └─baz └─qux └─hisfile.txt
Also:
$ bsdtar -tf foo.zip | treeify $ find /dir -size +5 | treeify $ git ls-files | treeify $ pacman -Qql foopkg | treeify $ unrar vb foo.rar | treeify $ zipinfo -1 foo.zip | treeify $ gsettings list-schemas | treeify -s. -f $ qdbus | sed -n "s/^ //p" | treeify -s. -f $ ldns-walk netbsd.org | awk '' | treeify -s. -f -R