aboutsummaryrefslogtreecommitdiff
path: root/md2org.sh
diff options
context:
space:
mode:
Diffstat (limited to 'md2org.sh')
-rwxr-xr-xmd2org.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/md2org.sh b/md2org.sh
new file mode 100755
index 0000000..ef01b6d
--- /dev/null
+++ b/md2org.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+dir=$1
+for file in $(ls $dir); do
+ base=$(basename $file)
+ name="${base%%.*}"
+ echo "pandoc -f markdown -t org -s -o $dir/$name.org $dir/$file"
+ pandoc -f markdown -t org -s -o $dir/$name.org $dir/$file
+done