I need to replace the string
)\n,( in a 10GB file. The \n in this case obviously stands for a newline.
I've tried so with this command:
sed -i '' '/),(/ s//),\n(/g' bigfile.sql
However, that didn't really work as expected. It did replace the string, but it didn't insert a newline, but simply a "n" (so it just neglected the backslash and escaped it). Any other takes on this, or where's my mistake in the above command?