In the case of a binary file, ed does not append a newline on ... Here is a way to check if a newline exists at the end before adding one, by using Python:
確定! 回上一頁