2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: get
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2019-11-30 12:48:23 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Extract data using a cell path.
|
2019-11-30 12:48:23 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> get (cell_path) ...rest --ignore-errors```
|
2019-11-30 12:48:23 +01:00
|
|
|
|
2020-06-23 20:21:47 +02:00
|
|
|
## Parameters
|
2020-03-13 18:23:41 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
- `cell_path`: the cell path to the data
|
|
|
|
- `...rest`: additional cell paths
|
|
|
|
- `--ignore-errors`: return nothing if path can't be found
|
2019-11-30 12:48:23 +01:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Extract the name of files as a list
|
2019-11-30 12:48:23 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> ls | get name
|
2019-11-30 12:48:23 +01:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Extract the name of the 3rd entry of a file list
|
2019-11-30 12:48:23 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> ls | get name.2
|
2019-11-30 12:48:23 +01:00
|
|
|
```
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Extract the name of the 3rd entry of a file list (alternative)
|
2019-11-30 12:48:23 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> ls | get 2.name
|
2019-11-30 12:48:23 +01:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Extract the cpu list from the sys information record
|
2019-11-30 12:48:23 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> sys | get cpu
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|
2022-02-14 03:22:51 +01:00
|
|
|
|