I have two shell variables(v1, v3). I want to substitue a part of one variable (v1) with the other(v3).
let v1=NPDL0000000
let v2=12
let des=
v3=`expr $v2 + 1`
I would like des=NPDL0000013, which comes from
NPDL0000000 (v1)
13 (v3)
---------------------------
NPDL0000013 (des)
I know I may be able to do this by awk ( on the file base).
But is there a way to do it in shell script?
Any help is greatly appreciated.
let v1=NPDL0000000
let v2=12
let des=
v3=`expr $v2 + 1`
I would like des=NPDL0000013, which comes from
NPDL0000000 (v1)
13 (v3)
---------------------------
NPDL0000013 (des)
I know I may be able to do this by awk ( on the file base).
But is there a way to do it in shell script?
Any help is greatly appreciated.