R
Ray Muforosky
Hello everyone I need help.
I need to do string substitution on over 350 files on the following
string. Is there a tricky command in vi or command line that can do
this.
FILE CONTENT:
......
.....
kasj tgn=0507, thr=12, options=sched,
safa tgn=0504, thr=22, options=sched,
asda tgn=0513, thr=122, options=sched,
asca tgn=055, thr=562, options=sched,
asca tgn=0514, thr=42, options=sched,
where there is "thr=###" I need make it "thr=##" deleting the first
digit.
So line 3 and 4 will be changed and the file content will be:
kasj tgn=0507, thr=12, options=sched,
safa tgn=0504, thr=22, options=sched,
asda tgn=0513, thr=22, options=sched,
asca tgn=055, thr=62, options=sched,
asca tgn=0514, thr=42, options=sched,
I know less 15 lines of perl script will do it, but I'm wondering if
there is another way.
Any Help will br appreciated.
Ray
I need to do string substitution on over 350 files on the following
string. Is there a tricky command in vi or command line that can do
this.
FILE CONTENT:
......
.....
kasj tgn=0507, thr=12, options=sched,
safa tgn=0504, thr=22, options=sched,
asda tgn=0513, thr=122, options=sched,
asca tgn=055, thr=562, options=sched,
asca tgn=0514, thr=42, options=sched,
where there is "thr=###" I need make it "thr=##" deleting the first
digit.
So line 3 and 4 will be changed and the file content will be:
kasj tgn=0507, thr=12, options=sched,
safa tgn=0504, thr=22, options=sched,
asda tgn=0513, thr=22, options=sched,
asca tgn=055, thr=62, options=sched,
asca tgn=0514, thr=42, options=sched,
I know less 15 lines of perl script will do it, but I'm wondering if
there is another way.
Any Help will br appreciated.
Ray