nushell/crates/nu-command/src
Andrés N. Robalino 463dd48180
Flexible dropping of rows (by desired row number) (#3917)
We very well support `nth 0 2 3 --skip 1 4` to select particular rows and skip some using a flag. However, in practice we deal with tables (whether they come from parsing or loading files and whatnot) where we don't know the size of the table up front (and everytime we have these, they may have different sizes). There are also other use cases when we use intermediate tables during processing and wish to always drop certain rows and **keep the rest**.

Usage:

```
... | drop nth 0
... | drop nth 3 8
```
2021-08-13 12:48:05 -05:00
..
classified Move path handling to nu-path (#3653) 2021-06-20 11:07:26 +12:00
commands Flexible dropping of rows (by desired row number) (#3917) 2021-08-13 12:48:05 -05:00
examples Fix clippy lint and disable broken lint (#3865) 2021-07-30 08:11:47 +12:00
utils Fix #3582 (#3583) 2021-06-09 18:07:54 +12:00
args.rs Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
default_context.rs Flexible dropping of rows (by desired row number) (#3917) 2021-08-13 12:48:05 -05:00
examples.rs Datetime commands (#3894) 2021-08-05 17:18:53 -05:00
lib.rs Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
prelude.rs Fix issue in external subexpression paths (#3642) 2021-06-18 07:59:58 +12:00
utils.rs Fix #3582 (#3583) 2021-06-09 18:07:54 +12:00