1

replace using pattern using awk or sed

view story
linux-howto

http://www.unix.com – I have file file_1.txt which contains: file_1.txt Code: <tr> 1 MAIL # 1 TO src_1 </tr> <tr><td class="hcol">col_id</td> <td class="hcol">test_dt</td> <td class="hcol">user_type</td> <td class="hcol">ct</td></tr> <tr><td class="bcol">1</td> <td class="bcol">2012-09-20</td> <td class="bcol">a</td> <td class="bwcol">15</td></tr> <tr><td class="bcol">1</td& (HowTos)