✂️ Add or remove final newlines.
Find a file
Eduard Urbach 75a0c21c01
All checks were successful
/ test (push) Successful in 10s
Changed indentation style
2025-06-03 14:01:36 +02:00
docs Updated documentation 2025-06-02 17:14:09 +02:00
src Changed indentation style 2025-06-03 14:01:36 +02:00
.gitignore Initial commit 2025-06-02 16:54:33 +02:00
Cargo.lock Initial commit 2025-06-02 16:54:33 +02:00
Cargo.toml Updated metadata 2025-06-02 17:20:11 +02:00

fnl

Add or remove final newlines.

Installation

cargo install fnl

Usage

Single file

Show status:

fnl file.txt

Add final newline:

fnl --add file.txt

Remove final newline:

fnl --remove file.txt

Multiple files

Show status:

find . -type f -name "*.txt" | xargs fnl

Add final newlines:

find . -type f -name "*.txt" | xargs fnl --add

Remove final newlines:

find . -type f -name "*.txt" | xargs fnl --remove

License

Please see the license documentation.

© 2025 Eduard Urbach