pipr.tools

reverse-lines

Reverse line order

Aa Text

Try it

stdin0 chars
stdout0 chars

Example

Reverse the order of lines

Usage
$ echo "first
second
third
fourth" | reverse-lines
View source
(input) => input.split("\n").reverse().join("\n")

Suggested Pipelines

Related Tools