mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 05:58:13 +02:00
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
@ -1,28 +1,33 @@
|
||||
# drop
|
||||
---
|
||||
title: drop
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
Remove the last number of rows or columns.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> drop (rows) <subcommand> {flags}
|
||||
```
|
||||
## Signature
|
||||
|
||||
## Subcommands
|
||||
* drop column - Remove the last number of columns. If you want to remove columns by name, try 'reject'.
|
||||
```> drop (rows)```
|
||||
|
||||
## Parameters
|
||||
* `(rows)` starting from the back, the number of rows to remove
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
- `rows`: starting from the back, the number of rows to remove
|
||||
|
||||
## Examples
|
||||
Remove the last item of a list/table
|
||||
```shell
|
||||
> echo [1 2 3] | drop
|
||||
```
|
||||
|
||||
Remove the last 2 items of a list/table
|
||||
Remove the last item of a list/table
|
||||
```shell
|
||||
> echo [1 2 3] | drop 2
|
||||
```
|
||||
> [0,1,2,3] | drop
|
||||
```
|
||||
|
||||
Remove zero item of a list/table
|
||||
```shell
|
||||
> [0,1,2,3] | drop 0
|
||||
```
|
||||
|
||||
Remove the last two items of a list/table
|
||||
```shell
|
||||
> [0,1,2,3] | drop 2
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user