W
waterie
I have a file consists of serveral sections, and each section consists
of same/semilar fields. Some fields need to change, the string should
be replaced without effect same field in other section. Here is an
example,
group name = abc # section 1
stt = 123
busy = off
dev = name1
ssn = 129483021
dlc = c82u208
group name = xyz # section 2
stt = 145
busy = on
dev = name2
ssn = 129432326
dlc = s43k234
group name = jhg # section 3
stt = 321
busy = off
dev = name5
ssn = 198782383
dlc = d83j208
# And I need to replace some fields in each section, to have a new file
like
group name = abc # section 1
stt = 321
busy = on
dev = fieldx
ssn = 129483021
dlc = c82u208
group name = xxh # section 2
stt = 145
busy = on
dev = fieldy
ssn = 129432326
dlc = s43k234
group name = jhg # section 3
stt = 321
busy = off
dev = name5
ssn = 238764824
dlc = d83j143
Anybody has idea how to do this? I'm new to this kind of replacement,
really appreciate it!
Sally
of same/semilar fields. Some fields need to change, the string should
be replaced without effect same field in other section. Here is an
example,
group name = abc # section 1
stt = 123
busy = off
dev = name1
ssn = 129483021
dlc = c82u208
group name = xyz # section 2
stt = 145
busy = on
dev = name2
ssn = 129432326
dlc = s43k234
group name = jhg # section 3
stt = 321
busy = off
dev = name5
ssn = 198782383
dlc = d83j208
# And I need to replace some fields in each section, to have a new file
like
group name = abc # section 1
stt = 321
busy = on
dev = fieldx
ssn = 129483021
dlc = c82u208
group name = xxh # section 2
stt = 145
busy = on
dev = fieldy
ssn = 129432326
dlc = s43k234
group name = jhg # section 3
stt = 321
busy = off
dev = name5
ssn = 238764824
dlc = d83j143
Anybody has idea how to do this? I'm new to this kind of replacement,
really appreciate it!
Sally