The Unix rev utility reverses lines in a file. How do I get this under Cygwin? Which package do I need to install?
Asked
Active
Viewed 2,360 times
2 Answers
10
The package util-linux contains rev. I found out using the Debian package search.
Adrian Frühwirth
- 781
- 4
- 12
Sjoerd
- 1,193
- 7
- 16
-
Yes, you should be able to run the Cygwin setup utility and find and install util-linux. – Zeke Hansell Mar 09 '11 at 16:05
-
2More relevantly, there's the Cygwin package search at http://cygwin.com/packages. – ak2 Mar 09 '11 at 19:20
0
Use tac or sort -r from GNU coreutils.
u1686_grawity
- 426,297
- 64
- 894
- 966
-
`rev` actually reverts the letters on each line, not the lines in a file. – Sjoerd Mar 09 '11 at 15:16