C:\Users\username>type afile.txt half a pound of tuppenny rice half a pound that's the way the money goes pop goes the weasel C:\Users\username> C:\>sed "4i\of treacle" afile.txt half a pound of tuppenny rice half a pound of treacle that's the way the money goes pop goes the weasel C:\>
Sie können verwenden sed "3a\of treacle" afile.txt
Ich füge vor dieser Zeile ein. 4i wäre vor Zeile 4. a fügt nach dieser Zeile ein. 3a wäre nach Zeile 3. Also ist 3a dasselbe wie 4i.