Another commonly used UNIX utility that I decided to quickly re-write, for fun. Takes a files a strips all the \r characters out, returning a pure UNIX-endline based file. The resulting snippet can be found below:
print map{s/\r//g;$_}<>;

Another commonly used UNIX utility that I decided to quickly re-write, for fun. Takes a files a strips all the \r characters out, returning a pure UNIX-endline based file. The resulting snippet can be found below:
print map{s/\r//g;$_}<>;
Posted: April 15th, 2004 · Tags: cli, snippet, perl, unix
Comments are closed.
Comments are automatically turned off two weeks after the original post. If you have a question
concerning the content of this post, please feel free to contact me.
Comprehensive DOM, Event, Animation, and Ajax JavaScript Library.
The best techniques for professional JavaScript. Published by Apress.
Hosting provided by the cool dudes at Engine Yard.