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