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"); }
In reply to Re: newlines for windows from unix
by DrSax
in thread newlines for windows from unix
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |