2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: last
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2019-10-03 14:14:59 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Show only the last number of rows.
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> last (rows)```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `rows`: starting from the back, the number of rows to return
|
2019-10-03 14:14:59 +02:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Get the last 2 items
|
2019-10-03 14:14:59 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> [1,2,3] | last 2
|
2019-10-03 14:14:59 +02:00
|
|
|
```
|