Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rev utility for windows

Status
Not open for further replies.

malladisk

Programmer
Jun 14, 2001
69
0
0
US
Hi, I used to work on UNIX systems and moved to windows utility. Needless to say, I feel quite restricted due to lack of typical utilities on Windows. I've downloaded a few .exes which mimic standard UNIX utilities but haven't been able to find a rev.exe (to reverse the characters of a line) anywhere. Anyone knows where I can find it? Or the source code which I can compile?
Regards,
Sashi
 
I use Microsoft Services for Unix or Cygwin to provide Unix utilities on Windows.
Works pretty well and offers other handy features.


"If you always do what you've always done, you will always be where you've always been."
 
A simple awk program to reverse the characters of a line:
awk '{for(i=length($0);i>0;--i)printf "%c",substr($0,i,1);printf "\n"}' input > tupni

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top