Timeline for Unix command to prepend text to a file
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 26, 2018 at 22:20 | comment | added | Jonathan Leffler |
@userunknown: In standard sed, the i command is followed by a backslash and a newline, and each line of input except the last ends with a backslash too. GNU sed allows shorthands along the lines you ask about, but it is only GNU sed that does so.'
|
|
| Apr 11, 2018 at 18:39 | comment | added | user unknown |
Why not sed -i '1ito be prepended' inFile - or is it only allowed for GNU sed?
|
|
| Oct 6, 2014 at 12:48 | history | answered | Mert Nuhoglu | CC BY-SA 3.0 |