15 lines
279 B
Bash
Executable file
15 lines
279 B
Bash
Executable file
#! /bin/sh
|
|
|
|
while IFS=: read field value; do
|
|
case "$field" in
|
|
"")
|
|
break
|
|
;;
|
|
Title)
|
|
# echo strips leading and trailing whitespace
|
|
title=${value# }
|
|
;;
|
|
esac
|
|
done
|
|
|
|
markdown | m4 -DTITLE="$title" $1 -
|