summaryrefslogtreecommitdiffstats
path: root/tree2md
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2017-03-30 10:24:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2017-03-30 10:24:50 +0200
commit9dbe4230226cf49dcf33e11516aca9d24219ca9e (patch)
tree923f46523b9536133c29cd053ee231552fac956a /tree2md
parent7e3c48bdc98a7ec7cd5a322ca74b56f1278e78ad (diff)
downloadbin-9dbe4230226cf49dcf33e11516aca9d24219ca9e.zip
bin-9dbe4230226cf49dcf33e11516aca9d24219ca9e.tar.gz
add tree2md
Diffstat (limited to 'tree2md')
-rwxr-xr-xtree2md2
1 files changed, 2 insertions, 0 deletions
diff --git a/tree2md b/tree2md
new file mode 100755
index 0000000..525dedb
--- /dev/null
+++ b/tree2md
@@ -0,0 +1,2 @@
+#! /bin/bash
+tree -f --noreport -I '*~' --charset ascii $@ | sed -e 's/| \+/ /g; s/[|`]-\+/ */g; s:\(* \)\(\(.*/\)\([^/]\+\)\):\1[\4](\2):g'