Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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
2  
More relevantly, there's the Cygwin package search at cygwin.com/packages. –  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

 
discard

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.