編號,我想知道,如果sed的是能夠做一些線計算工作,而編號特定行的,假設我有文件的符合SED
Some question
some answer
another answer
Another question
another answer
other answer
我希望有一個命令文件轉換到這一點:所需的輸出
1_ Some question
a_ some answer
b_ another answer
2_ Another question
a_ another answer
b_ other answer
這有可能與sed的?如果沒有,如何在沒有bash腳本解決方案的情況下完成這項工作?
你能更清楚的知道你對「bash scrip婷「是和不是? – kojiro
一個在bash中使用控制結構的程序,例如while,for等 –
你想達到什麼目的?你需要做什麼?我在這裏聞到[XY-problem](http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem) – sehe