If you able to see above list properly, I had put the last column to red color
whereby to show you that that is the column that I want to put it as condition ie. if it is more than 50, I will need to substitute <TR> into <TR style...>, and remaining rows I still want to display out to show that that particular rows has exceeded certain percentage.
Thanks
Please use code tags for code and data samples, thank you
Syntax Error The source line is 1.
The error context is
>>> {match($0,"<TD>([0-9]*)</TD></TR>$", <<<
awk: 0602-502 The statement cannot be correctly parsed. The source line is 1.
@ckwan: Why will it not work? Did you try with the second set of input? Script worked perfectly for your second set of input too. Lines with last <TD> column > 50 had their <TR> tags replaced with <TR style>.
Hi balajesuri, I read your perl script code that seems it only match by pattern (if I read correctly, sorry I am new to perl script),
where I need the number comparison if ($no > 50), I only want to add <TR style...>, if less than 50 will not add "style" into <TR>. This is normally happen when admin person would like to highlight those > x%, the script will highlight those rows hit the threshold.
Similarly to Ahamed, the script is matching by pattern. it will be good if the script can cater for the above scenario.
Thanks for your afford.
---------- Post updated at 10:33 PM ---------- Previous update was at 09:20 PM ----------
Ahamed, thanks for your code. Is working now.
Thanks to balajesuri too.. I believe perl should able to perform the same task too. It will be good if you can send me the code as well. I am also keen on perl scripting.