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

split cell-path for conversions

Split a cell-path into its components.

Signature

> split cell-path {flags}

Input/output types:

inputoutput
cell-pathlist<any>

Examples

Split a cell-path into its components

> $.5?.c | split cell-path
╭───┬───────┬──────────╮
│ # │ value │ optional │
├───┼───────┼──────────┤
│ 0 │     5 │ true     │
│ 1 │ c     │ false    │
╰───┴───────┴──────────╯

Split a complex cell-path

> $.a.b?.1."2"."c.d" | split cell-path
╭───┬───────┬──────────╮
│ # │ value │ optional │
├───┼───────┼──────────┤
│ 0 │ a     │ false    │
│ 1 │ b     │ true     │
│ 2 │     1 │ false    │
│ 3 │ 2     │ false    │
│ 4 │ c.d   │ false    │
╰───┴───────┴──────────╯