help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

arithemtic in buffers


From: Birju Prajapati
Subject: arithemtic in buffers
Date: Thu, 10 Aug 2006 14:44:24 +0100

Hi,
I have a buffer with the follwing:

insert into merge.rule (property, type, source, source_index) values
('primary', NULL,  15,  0);
insert into merge.rule (property, type, source, source_index) values
('primary', NULL, 1, 1);
insert into merge.rule (property, type, source, source_index) values
('primary', NULL, 12, 2);
insert into merge.rule (property, type, source, source_index) values
('primary', NULL, 10, 3);
insert into merge.rule (property, type, source, source_index) values
('primary', NULL, 11, 4);
insert into merge.rule (property, type, source, source_index) values
('primary', NULL, 9, 5);

....and so on....

I need to increase the value of the last digit on each line by one. Is
there an automagic way to do this via emacs? Do I use regular
expressions, M-x calculator, both, or something else to do it? Any
help would be much appreciated

TIA
Birju




reply via email to

[Prev in Thread] Current Thread [Next in Thread]