in reply to Altering data files

This will do it. See perlrun for the explanation of the switches used. In particular, look at the documentation for -i.bak for in-place editting of files; -0ooo for setting 'paragraph mode'; -p for processing a file as a filter.

If you don't understand, ask and someone will help you.

C:\test>type 577397.dat "1" { "data1" "test.V1_0"; "StrCatDone" "0"; "seq_name" "sequence.V5_0"; "seq_step" "22"; } "2" { "data1" "test.V1_0"; "StrCatDone" "1"; "seq_name" "sequence.V5_0"; "seq_step" "41"; } ## Note: This should be typed as one line but is wrapped for posting. ## On *nix system, you'lll need 's instead of "s. C:\test>perl -0175 -i.bak -pe"/StrCatDone. .1./ and s/sequence.V5_0/sequence.V6_3/" 577397.dat C:\test>type 577397.dat "1" { "data1" "test.V1_0"; "StrCatDone" "0"; "seq_name" "sequence.V5_0"; "seq_step" "22"; } "2" { "data1" "test.V1_0"; "StrCatDone" "1"; "seq_name" "sequence.V6_3"; "seq_step" "41"; }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.