#!/bin/bash echo "remove bracketed footnotes" perl -pi -e 's/\[.\]//g' *.txt perl -pi -e 's/\[..\]//g' *.txt