Skip to content

Instantly share code, notes, and snippets.

@antonkratz
Created November 25, 2018 05:07
Show Gist options
  • Save antonkratz/d85ac1ead4c4eb8422cd5ae8cb191cee to your computer and use it in GitHub Desktop.
Save antonkratz/d85ac1ead4c4eb8422cd5ae8cb191cee to your computer and use it in GitHub Desktop.
usually, the tree command is not installed on machines where I am not root. but I must have tree. here is an awesome fix.
find ./ | sed -e 's/[^-][^\/]*\//--/g;s/--/ |-/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment