aboutsummaryrefslogtreecommitdiff
path: root/md2org.sh
blob: ef01b6d567b99356ee59cb4369d0438b5f2202d5 (plain) (blame)
1
2
3
4
5
6
7
8
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