mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 13:24:30 +01:00
28 lines
452 B
Markdown
28 lines
452 B
Markdown
---
|
|
title: reject
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
Remove the given columns from the table. If you want to remove rows, try 'drop'.
|
|
|
|
## Signature
|
|
|
|
```> reject ...rest```
|
|
|
|
## Parameters
|
|
|
|
- `...rest`: the names of columns to remove from the table
|
|
|
|
## Examples
|
|
|
|
Lists the files in a directory without showing the modified column
|
|
```shell
|
|
> ls | reject modified
|
|
```
|
|
|
|
Reject the specified field in a record
|
|
```shell
|
|
> echo {a: 1, b: 2} | reject a
|
|
```
|