diff options
Diffstat (limited to 'qdsg.sh')
-rwxr-xr-x | qdsg.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#!/bin/bash + +mkdir -p out/ + +for inFile in in/*.html; do + [ -e "$inFile" ] || continue + + echo "Processing file $inFile" + filename=$(basename "$inFile") + outFile="out/$filename" + cat header.html > "$outFile" + cat "$inFile" >> "$outFile" + cat footer.html >> "$outFile" +done |