Skip to content
/ fnew Public

A Unicode-aware line-oriented drop-in replacement for coreutils' fold.

Notifications You must be signed in to change notification settings

Kestrer/fnew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fnew

Features and Limitations

  • Counts in Unicode graphemes by default.
  • Can count in bytes or characters.
  • Exact same syntax as GNU Fold.
  • Only works with UTF-8 input.
  • Line oriented. While GNU Fold buffers the entire input before folding it all at once, fnew takes in and prints its input line by line. This makes it suitable to be piped into from long running commands.

Usage

USAGE:
    fnew [FLAGS] [OPTIONS] [file]

FLAGS:
    -b, --bytes      Count bytes not graphemes. Can cause invalid Unicode sequences.
    -c, --chars      Count unicode characters not graphemes.
    -h, --help       Prints help information
    -s, --spaces     Split at whitespaces when possible.
    -V, --version    Prints version information

OPTIONS:
    -w, --width <width>    Width to fold at. [default: 80]

ARGS:
    <file>    File to read from, - is stdin. [default: -]

About

A Unicode-aware line-oriented drop-in replacement for coreutils' fold.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages