Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Unix rev utility reverses lines in a file. How do I get this under Cygwin? Which package do I need to install?

share|improve this question

The package util-linux contains rev. I found out using the Debian package search.

share|improve this answer
Yes, you should be able to run the Cygwin setup utility and find and install util-linux. – Zeke Hansell Mar 9 '11 at 16:05
More relevantly, there's the Cygwin package search at – ak2 Mar 9 '11 at 19:20

Use tac or sort -r from GNU coreutils.

share|improve this answer
rev actually reverts the letters on each line, not the lines in a file. – Sjoerd Mar 9 '11 at 15:16
@Sjoerd: Thanks for the information. – grawity Mar 9 '11 at 19:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.