Artifact 020401fc36ce2f05e3fd160d8e6c76f09c1fac2bf8259284009a0844bc61ef3e:
- File directories-tree.ps1 — part of check-in [961b0e96f8] at 2018-06-10 13:43:00 on branch trunk — If ‘tree’ pocket has not been installed that you can use next script but note that it gets only directories. (user: greg zakharov size: 487)
# encoding: ascii # api: bash # title: directories tree # description: If ‘tree’ pocket has not been installed that you can use next script but note that it gets only directories. # version: 0.1 # author: greg zakharov # license: CC0 # x-poshcode-id: 4561 # x-archived: 2013-11-04T14:33:37 # x-published: 2013-10-26T16:39:00 # # #!/bin/bash if [ -z "$1" ]; then loc=$(pwd); else loc=$1; fi ls -aR $loc | grep ':$' | sed -e 's/:$//;s/[^-][^\/]*\//--/g;s/^/ /;s/-/|/'