On 15/09/2005, at 17.47, Allan Odgaard wrote:
Here's a very simple version: echo '<pre>' g++ "$TM_FILEPATH" \ 2> >(perl -pe 's|^.*?:(\d+):\s*(.*?)$|<a href="txmt://open? line=$1">$2</a>|')
Actually, make that $TM_FILENAME instead (for nicer output).
And if you btw want to use -o with the basename:
echo '<pre>' g++ "$TM_FILENAME" -o "$(perl -pe <<<"$TM_FILEPATH" 's|.[^.]+ $||')" \ 2> >(perl -pe 's|^.*?:(\d+):\s*(.*?)$|<a href="txmt://open?line= $1">$2</a>|')