diff --git a/docs/src/extensions.md b/docs/src/extensions.md index f24518281..275690a33 100644 --- a/docs/src/extensions.md +++ b/docs/src/extensions.md @@ -29,3 +29,7 @@ We provide a simple implementation of `more`, which is not part of GNU coreutils. We do not aim for full compatibility with the `more` utility from `util-linux`. Features from more modern pagers (like `less` and `bat`) are therefore welcomed. + +## `cut` + +`cut` can separate fields by whitespace (Space and Tab) with `-w` flag. This feature is adopted from [FreeBSD](https://www.freebsd.org/cgi/man.cgi?cut). \ No newline at end of file diff --git a/src/uu/cut/src/cut.rs b/src/uu/cut/src/cut.rs index efcebd8c6..5f0534795 100644 --- a/src/uu/cut/src/cut.rs +++ b/src/uu/cut/src/cut.rs @@ -90,6 +90,7 @@ static LONG_HELP: &str = " If the -w option is provided, fields will be separated by any number of whitespace characters (Space and Tab). The output delimiter will be a Tab unless explicitly specified. Only one of -d or -w option can be specified. + This is an extension adopted from FreeBSD. Optionally Filter based on delimiter If the --only-delimited (-s) flag is provided, only lines which @@ -675,7 +676,7 @@ pub fn uu_app() -> Command { .arg( Arg::new(options::WHITESPACE_DELIMITED) .short('w') - .help("Use any number of whitespace (Space, Tab) to separate fields in the input source.") + .help("Use any number of whitespace (Space, Tab) to separate fields in the input source (FreeBSD extension).") .value_name("WHITESPACE") .action(ArgAction::SetTrue), )