Skip to content

Instantly share code, notes, and snippets.

@letoh
Created April 20, 2012 03:00
Show Gist options
  • Save letoh/2425569 to your computer and use it in GitHub Desktop.
Save letoh/2425569 to your computer and use it in GitHub Desktop.
simple tree
#!/bin/sh
find $1 | sed -e 's/^.\///;s/\/$//;s/[^\/]\+\/\([^\/]\+\)$/ + \1/;s/[^\/]\+\// | /g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment