11 lines
162 B
Bash
11 lines
162 B
Bash
|
#!/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
|