ls -R | perl -ne'if(s/:$//){s{[^/]*/}{--}g;s/^-/\t|/;print}'
Or just tree -d
In reply to Re: One liner to print a file system tree on UNIX like systems
by toolic
in thread One liner to print a file system tree on UNIX like systems
by ciderpunx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |