mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 05:58:40 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
28
docs/commands/drop.md
Normal file
28
docs/commands/drop.md
Normal file
@ -0,0 +1,28 @@
|
||||
# drop
|
||||
Remove the last number of rows or columns.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> drop (rows) <subcommand> {flags}
|
||||
```
|
||||
|
||||
## Subcommands
|
||||
* drop column - Remove the last number of columns. If you want to remove columns by name, try 'reject'.
|
||||
|
||||
## Parameters
|
||||
* `(rows)` starting from the back, the number of rows to remove
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
|
||||
## Examples
|
||||
Remove the last item of a list/table
|
||||
```shell
|
||||
> echo [1 2 3] | drop
|
||||
```
|
||||
|
||||
Remove the last 2 items of a list/table
|
||||
```shell
|
||||
> echo [1 2 3] | drop 2
|
||||
```
|
||||
|
Reference in New Issue
Block a user