General Question

friedchuckles's avatar

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

Asked by friedchuckles (8points) August 19th, 2008

Not the characters on a line but the lines themselves.

Observing members: 0 Composing members: 0

1 Answer

robmandu's avatar


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

Answer this question




to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther