I have a file called "one.txt"
And inside the file, there are datas like:
Code:
1 -10g 20g -30g
2 10g -30g 50g
3 -10g 40g -70g
I need a Perl script so that the output will be:
Code:
1 -10 20 -30
2 10 -30 50
3 -10 40 -70
Note that the 'g' string is removed. Any idea?