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
Binary file not shown.
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/python
import argparse
import os
def main():
parser = argparse.ArgumentParser()
parser.add_argument("op")
parser.add_argument("type")
res = parser.parse_args()
print(res)
if __name__ == "__main__":
main()
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