59 lines
No EOL
642 B
Markdown
59 lines
No EOL
642 B
Markdown
# fnl
|
|
|
|
Add or remove final newlines.
|
|
|
|
## Installation
|
|
|
|
```shell
|
|
cargo install fnl
|
|
```
|
|
|
|
## Usage
|
|
|
|
### Single file
|
|
|
|
Show status:
|
|
|
|
```shell
|
|
fnl file.txt
|
|
```
|
|
|
|
Add final newline:
|
|
|
|
```shell
|
|
fnl --add file.txt
|
|
```
|
|
|
|
Remove final newline:
|
|
|
|
```shell
|
|
fnl --remove file.txt
|
|
```
|
|
|
|
### Multiple files
|
|
|
|
Show status:
|
|
|
|
```shell
|
|
find . -type f -name "*.txt" | xargs fnl
|
|
```
|
|
|
|
Add final newlines:
|
|
|
|
```shell
|
|
find . -type f -name "*.txt" | xargs fnl --add
|
|
```
|
|
|
|
Remove final newlines:
|
|
|
|
```shell
|
|
find . -type f -name "*.txt" | xargs fnl --remove
|
|
```
|
|
|
|
## License
|
|
|
|
Please see the [license documentation](https://urbach.dev/license).
|
|
|
|
## Copyright
|
|
|
|
© 2025 Eduard Urbach |