English | 简体中文
Append a newline character (LF) to the end of the file.
cargo install nlf --locked --profile release-small
# Append a newline character (LF) to the end of the file if it does not exist
nlf a.txt
# Fix newline characters of all .txt files in the dir directory (append if there is no newline at the end)
find dir -type f -name '*.txt' -exec nlf {} \;