Timeline for Replace whole line in a file from command-line
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 14, 2013 at 22:09 | vote | accept | robintw | ||
| Sep 14, 2013 at 22:09 | |||||
| Jul 26, 2012 at 20:57 | comment | added | bahamat | @robintw: What operating system are you using? You're probably not using GNU sed. If we knew which specific variant of see you have we could more accurately provide an answer. | |
| Mar 29, 2012 at 0:21 | comment | added | jw013 | The -i option to sed is non-standard and usually breaks symlinks. If you have GNU sed you almost always want to add the option to --follow-symlinks. In general, I recommend avoiding sed -i and using ed instead. Files are not streams. | |
| Mar 28, 2012 at 23:08 | comment | added | tylerl | @robintw Works for me. Did you copy/paste it wrong? | |
| Mar 28, 2012 at 21:57 | comment | added | robintw | Thanks for the answer! Unfortunately it gives the following error: sed: 1: "conf.py": command c expects \ followed by text - do you have any ideas? | |
| Mar 28, 2012 at 21:19 | history | answered | rush | CC BY-SA 3.0 |