in reply to File parsing

hello and welcome newbie10,

modify a text file is a trivial task, you can start with perl -i.
Additionally you'll find that more effort you put writing question, containing what you tried, example data and so on, more chance you'll have to get good answers in return.
Also remember that Super Search is your friend

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.