Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 287 Bytes

File metadata and controls

15 lines (10 loc) · 287 Bytes

Read Command Output In Reverse Order

We can use tac to read file(s) or stdout in reverse order.

tac - concatenate and print files in reverse

Example

echo -e "Hello\nWorld" | tac
World
Hello

Source: StackOverFlow