perl -lne "print $first++? q{
}:q{
} and next if 0==index $_, "[Sidenote"; print; print q{
} if eof" letters.txt