#!/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