2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: lines
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Converts input to lines
|
2019-10-03 06:09:01 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> lines --skip-empty```
|
2019-10-03 06:09:01 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
- `--skip-empty`: skip empty lines
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-20 02:13:33 +01:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Split multi-line string into lines
|
|
|
|
```shell
|
|
|
|
> echo $'two(char nl)lines' | lines
|
|
|
|
```
|