in reply to newlines for windows from unix
Of course, this begs the question of why, once you have a file that is not contaminated by newlines you would want to add them for the sake of Notepad, but I will leave that discussion to others... :-)#! /usr/local/bin/perl -w use IO::File; while ($string = <STDIN>) { chomp($string); STDOUT->print("$string\r\n"); }
|
|---|