Timeline for Insert text in specific lines of a file
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 15, 2018 at 3:25 | comment | added | Matt Kleinsmith | You'll need to write the new version to a temporary file and then move the temporary file to your original file's location to complete this task. stackoverflow.com/a/8019641/3822261 | |
| S Nov 13, 2013 at 12:25 | history | suggested | Ivan Chau | CC BY-SA 3.0 |
Avoid confusion of dollar sign and add little explaination
|
| Nov 13, 2013 at 8:40 | review | Suggested edits | |||
| S Nov 13, 2013 at 12:25 | |||||
| Nov 10, 2013 at 15:15 | comment | added | Armen | Thank you. This helped me in my case... Later I can probably move this into actual perl script where I generate my sample values. | |
| Nov 10, 2013 at 15:15 | vote | accept | Armen | ||
| Nov 2, 2013 at 20:11 | comment | added | evilsoup |
Related (because I'm on an ed binge :v ) is how to do it with ed: printf '%s\n' 1 i Exp1 . 5 i Exp2 . w q | ed file.txt. I'm keeping this as a comment rather than an answer because I don't think anyone will actually use this lol.
|
|
| Nov 2, 2013 at 19:35 | history | edited | Kevin | CC BY-SA 3.0 |
added 470 characters in body
|
| Nov 2, 2013 at 17:40 | history | answered | Kevin | CC BY-SA 3.0 |