Spec-Zone.ru › Nushell

lines for filters

Converts input to lines.

Signature

> lines {flags}

Flags

  • --skip-empty, -s: Skip empty lines.

Input/output types:

input output
any list<string>

Examples

Split multi-line string into lines

> $"two\nlines" | lines
╭───┬───────╮
│ 0 │ two   │
│ 1 │ lines │
╰───┴───────╯

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/lines.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API