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;$_}<>;
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.
Secret techniques of top JavaScript programmers.
The best techniques for professional JavaScript. Published by Apress.
Infrequent, short, updates and links.