Lines & ListsLesson 361Free preview
Reverse Line Order
This lesson is part of Web Developer Tools · All levels
Summary
Reverse Line Order reverses the order of the lines from the last to the first, without reversing the characters within each line. This command differs from rev that flips text per line. It is usually used to read the latest log first or prepare data in reverse order.
Key points
- Reverse line order reverses line order, not line content
- The tac command reverses the line order on Linux
- The rev command reverses the character in each line
- The last line without a newline can affect the result of the merger.
- Reverse is often used to view the latest events
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.