Files
CoderSherlock.github.io/tools/tool.sh
T
2016-09-09 15:31:13 -04:00

12 lines
223 B
Bash
Executable File

#!/bin/bash
TARGET="../draft"
#DRAFTS=$(ls -l $TARGET| awk '!/index/ {print $9}')
DRAFTS=$(ls -l $TARGET| awk '{print $9}')
for DRAFT in $DRAFTS
do
pandoc $TARGET/$DRAFT -o ../$(echo $DRAFT| cut -d'.' -f1).html
done