mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
specify that cut -w is freebsd extension
This commit is contained in:
parent
866a6d25c8
commit
17c48e13f4
2 changed files with 6 additions and 1 deletions
|
@ -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
|
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
|
`util-linux`. Features from more modern pagers (like `less` and `bat`) are
|
||||||
therefore welcomed.
|
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).
|
|
@ -90,6 +90,7 @@ static LONG_HELP: &str = "
|
||||||
If the -w option is provided, fields will be separated by any number
|
If the -w option is provided, fields will be separated by any number
|
||||||
of whitespace characters (Space and Tab). The output delimiter will
|
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.
|
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
|
Optionally Filter based on delimiter
|
||||||
If the --only-delimited (-s) flag is provided, only lines which
|
If the --only-delimited (-s) flag is provided, only lines which
|
||||||
|
@ -675,7 +676,7 @@ pub fn uu_app() -> Command {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::WHITESPACE_DELIMITED)
|
Arg::new(options::WHITESPACE_DELIMITED)
|
||||||
.short('w')
|
.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")
|
.value_name("WHITESPACE")
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue