Second test of script

This commit is contained in:
2016-09-09 15:31:13 -04:00
parent 60a09d8cf0
commit 8bfb67fdad
8 changed files with 61 additions and 23 deletions
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/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