id=$(cat next-issue-number.txt) printf "%03d" "$(expr $id + 1)" > next-issue-number.txt printf "Title/Summary?\n> " read -r summary slugSummary=$(echo "$summary" | tr "[:upper:]" "[:lower:]" | tr ' ' - ) slugSummary="${slugSummary//.}" echo "### $summary" > "$id-$slugSummary.md"