1
0
mirror of https://github.com/nushell/nushell.git synced 2025-08-14 04:38:33 +02:00
Files
nushell/docs/commands/get.md
Justin Ma c0a1d18e3d update , regenerate commands' docs and update make_docs script ()
* feat: update , regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

642 B

title, layout, version
title layout version
get command 0.59.0

Extract data using a cell path.

Signature

> get (cell_path) ...rest --ignore-errors

Parameters

  • cell_path: the cell path to the data
  • ...rest: additional cell paths
  • --ignore-errors: return nothing if path can't be found

Examples

Extract the name of files as a list

> ls | get name

Extract the name of the 3rd entry of a file list

> ls | get name.2

Extract the name of the 3rd entry of a file list (alternative)

> ls | get 2.name

Extract the cpu list from the sys information record

> sys | get cpu