in reply to Re^2: Oneliner replace in-place adds extra spaces at the end of the file
in thread Oneliner replace in-place adds extra spaces at the end of the file

thanks for this. minor neatpick: in the whole thread I see different renderings for the number Zero, compare 0, 0 and 0 and 0, I guess your -o is actually -0? I will use -0777 from now one because my files are not huge and slurping gives me more flexibility. Indeed -l and s///g*s* were from my wider use-case.

Replies are listed 'Best First'.
Re^4: Oneliner replace in-place adds extra spaces at the end of the file
by ikegami (Patriarch) on Oct 27, 2025 at 14:25 UTC

    Yeah, one use was accidentally the letter "o". Fixed.