Author: rickmrickm
Date: Jul 14, 2008 12:49
I have a file that I need to fix with many entries that look like
this:
NEW (nu) 0 ( 429186 275982 ) via2$column_2
bu need to look like this depend whats on the first 4 characters of
the last field:
NEW MET2 0 ( 429186 275982 ) via2$column_2
Heres are the details:
NEW MET2 0 ( 429186 275982 ) via2$column_2
^^^ ^^^^^^
A B
The value of A will change depending whats on the first 4
characters of B
heres a few examples:
if B is via1 then (nu) will need to be changed to MET1
if B is via3$row_2 then (nu) will need to be changed to MET3
Hope this makes sense. Is there a one-liner for this type of
substitution?
THANKS
|