sed insert line command OSX
You should put a newline directly after the \: sed ‘3i\ text to insert’ file This is actually the behaviour defined by the POSIX specification. The fact that GNU sed allows you to specify the text to be inserted on the same line is an extension. If for some reason you need to use double … Read more