|
. |
mac2unix is how I convert Mac OS files to UNIX; the end-of-line markers are different. I usually keep this in my ~username/bin directory, hard-linked to m2u (so it's easy to type). I've never had need to write a u2m...
#!/usr/bin/perl
while (<STDIN>) {
s/\r/\n/gi ; # replace returns with newlines
print $_ ;
}
|
|
This page is copyrighted 1993-2006 by Michael 'Mickey' Sattler, some rights reserved via the Creative Commons License. Questions and comments? Send email to the Geek Times Webmaster. (Domain and web content hosting at 1and1.)
|
|