my result file has lines like below
line1=10 line2=30 line3= I am a monk line4=true ..... .... ....
my questions is : I want just the values at the end of each line saperated by a demiliter. in this case: 10/30/I am a monk/true/etc in a saperate file may be like.final.txt.
here is my code
Please Advise!open OUTFILE, "<$outfile"; open FINAL, ">$final"; while (<OUTFILE>) { print FINAL if /(line1=\d+)/; print FINAL if /(line2=\d+)/; print FINAL if /(line3=\d+)/; .......... }
In reply to how to delete part of the line? by yskmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |