The solution here isn't to switch the order of -l and -0, but to remove -l entirely.
I use the suggested -0777 when I really want slurp mode
For the curious,
In reply to Re^2: Oneliner replace in-place adds extra spaces at the end of the file
by ikegami
in thread Oneliner replace in-place adds extra spaces at the end of the file
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |