Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmi1974/38370444f846978df95b2d570c4ea1a7 to your computer and use it in GitHub Desktop.
Save rmi1974/38370444f846978df95b2d570c4ea1a7 to your computer and use it in GitHub Desktop.
How to display a directory tree with hashes truncated #commandlinefu

How to display a directory tree with hashes truncated

alias truncate-hashes="sed -r 's/([a-f0-9]{8})[a-f0-9]{56}/\1.../g'"
tree ~ | truncate-hashes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment