nushell/docs/commands/dfr_str-slice.md

385 B

title layout version
dfr str-slice command 0.59.1

Slices the string from the start position until the selected length

Signature

> dfr str-slice (start) --length

Parameters

  • start: start of slice
  • --length {int}: optional length

Examples

Creates slices from the strings

> [abcded abc321 abc123] | dfr to-df | dfr str-slice 1 -l 2