Hi I have file fomated like that.
# 1996 3 4 9 58 11.0 20.2810 106.3000 20.8 2.7 0.0 0.0 0.5 1PLV 12.20 1.00 PgPLV 21.00 0.75 SgHNV 16.20 1.00 PgHNV 28.40 0.75 Sg# 1996 3 29 10 34 43.4 20.8820 107.2830 28.5 2.6 0.0 0.0 0.7 2PLV 12.20 1.00 PgPLV 20.60 0.75 Sg
Now I need to remove the number on line have symbol "#" from
# 1996 3 4 9 58 11.0 20.2810 106.3000 20.8 2.7 0.0 0.0 0.5 1
to
# 1
Mean that all so thing after "#" to last number need to be remove (between # and number have 4 <space>). Final I need the file like that
# 1PLV 12.20 1.00 PgPLV 21.00 0.75 SgHNV 16.20 1.00 PgHNV 28.40 0.75 Sg# 2PLV 12.20 1.00 PgPLV 20.60 0.75 Sg
Any one can help me! I try few way but it remove all or change the string only.
Best Answer