我想在第3栏中仅更换模式' foo'通过' bar'以下CSV文件。是否可以使用emacs执行此操作,或者我是否需要编写脚本来执行此操作?
foo;bbb;foo;
foo;bbbbbbbb;bar;
foo;bbbbbb;foo;
foo;bbbbbbbbbbbb;bar;
foo;bbbbbb;foo;
因此,加速结果将是:
foo;bbb;bar;
foo;bbbbbbbb;bar;
foo;bbbbbb;bar;
foo;bbbbbbbbbbbb;bar;
foo;bbbbbb;bar;
答案 0 :(得分:2)
使用csv模式:https://github.com/emacsmirror/csv-mode
for (int i = 200; i < 250; ++i)
std::cout << "value of i: " << i << endl;
for (int i = 251; i <= 400; ++i)
std::cout << "value of i: " << i << endl;