# Parses the output of TASM and returns recoreds containing the following: # Filename, Line, Column, ErrorMessage # Since Column can not be assertained it is set to 0. /[*]Warning[*]|[*][*]Error[*][*]|[*][*]Fatal[*][*]/ \ { split($2,a,"(") split(a[2],b,")") a = sprintf("%1s, %1s, 0,",a[1],b[1]) b = " " $1 for (i=3; i <= NF; i++) b = sprintf("%1s %1s",b,$i) print a b }