Skip to content

Commit

Permalink
Add tree.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yutayamate committed Oct 16, 2023
1 parent c38d58b commit f6fc129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tree.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
cd "${1:-.}"; pwd; find . | sort | sed '1d;s/^\.//;s/\/\([^/]*\)$/|--\1/;s/\/[^/|]*/| /g'
cd "${1:-.}" || exit && pwd && find . | sort | sed '1d;s/^\.//;s/\/\([^/]*\)$/|--\1/;s/\/[^/|]*/| /g'

0 comments on commit f6fc129

Please sign in to comment.