Emacs: conditional replace!!
Hi all, I have such a problem by using Emacs:
Here below are 2 columns of data,
1.5 Mbits
1.2 Mbits
234 Kbits
1.4 Mbits
I want to do a conditional replacement, which means "if the value of the 2nd column is 'Kbits', divide the corresponding value in the 1st column by 1000". In this case the 234 should be replaced by 0.234
I want to know how to do it with Emacs, or is there another way to realize it?
regards
anchunlei
|