You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aney.co.uk/makeposts.sh

9 lines
213 B
Bash

#!/bin/bash
# Build all Blogposts
for filename in posts/*.md; do
filename= echo $filename | grep "[^\/]+(?=)$"
echo $filename
cat includes/header.html $filename includes/footer.html > blog/$filename.html
done