get

Extract data using a cell path.

Signature

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

Parameters

  • cell_path: the cell path to the data
  • ...rest: additional cell paths
  • --ignore-errors: return nothing if path can't be found
  • --sensitive: get path in a case sensitive manner

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

Getting Path/PATH in a case insensitive way

> $env | get paTH

Getting Path in a case sensitive way, won't work for 'PATH'

> $env | get -s Path