Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

into cell-path for conversions

Convert value to a cell-path.

Signature

> into cell-path {flags}

Input/output types:

inputoutput
cell-pathcell-path
intcell-path
list<any>cell-path
list<record<value: any, optional: bool>>cell-path

Examples

Convert integer into cell path

> 5 | into cell-path
$.5

Convert cell path into cell path

> 5 | into cell-path | into cell-path
$.5

Convert string into cell path

> 'some.path' | split row '.' | into cell-path
$.some.path

Convert list into cell path

> [5 c 7 h] | into cell-path
$.5.c.7.h

Convert table into cell path

> [[value, optional]; [5 true] [c false]] | into cell-path
$.5?.c

Notes

Converting a string directly into a cell path is intentionally not supported.