df.tips
How to remove the trailing newline (`LF`) character (the terminal newline, the EOF newline) from a text file using `sed`?
Unix
Bash
sed
,
text-processing
,
bash
,
unix
,
lf
dmitrii_fediuk
(Dmitrii Fediuk)
March 26, 2025, 1:07am
2
sed -z -i 's/\n$//' <file>