perl -ne 'chomp; !/^/ ? print "<para>$_</para>\n" : print "$_\n"' <input_file>