General Question

friedchuckles's avatar

Is there a unix command to reverse the lines in a file?

Asked by friedchuckles (8points) August 19th, 2008
1 response
“Great Question” (0points)

Not the characters on a line but the lines themselves.

Topic:
Observing members: 0
Composing members: 0

Answers

robmandu's avatar

tac

tac (cat spelled backwards) works like cat, but reverse the order of the lines (last line is written out first).

Answer this question

Login

or

Join

to answer.

Mobile | Desktop


Send Feedback   

`