tlwiki/conversion-scripts/vimwiki2md.bash

11 lines
162 B
Bash
Raw Normal View History

#!/usr/bin/env bash
newdir=./new
[[ ! -d $newdir ]] && mkdir $newdir
for i in ./*.wiki; do
newname=${i/.wiki/.md}
sed -f "$1" "$i" > "$newdir/$newname"
done