#!/bin/sh id="$(wc -l /tmp/footnote_count | cut -d' ' -f1 | tr -d '\n')" echo -n "[${id}]" echo "${1}[${id}]" >> /tmp/footnotes echo ' ' >> /tmp/footnote_count