Skip to content

jamylak/chomper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chomper

Trim trailing newline and carriage return bytes from a file in-place.

Install

cargo install --path .

Usage

chomper <file>

Exit codes:

  • 0 success
  • 1 runtime error (IO, permissions)
  • 2 usage error

Examples

Trim a file with trailing newlines:

printf "hello\n\n" > sample.txt
chomper sample.txt

Expected output:

hello

About

Simple CLI to chomp newlines off the end of a file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors