I have hundreds of perl scripts in a regression which
have been created and modified from various
operating systems. They've also been 
modified in parts by some perl scripts I've
run on them to fix various bits. and they've
been modified by Notepad and Wordpad.
 
(I'm not the guy who wrote these files,
but I'm the guy who has to fix them when
they're broken. So othe people create and
edit them.)
 
Somewhere along the line, some of the
newline characters got messed up.
And I don't know if its because my
script was using \n from a dos machine
modifying a file on a unix drive, or what.
 
If I run unix2dos twice on a file,
it will fix the bad lines, but the lines
that were OK end up with empty
lines in between every line.
 
Anyway, I think I need a unix2dos
script that will just fix the unix newlines
without modifying the dos newlines.
 
but I'm not exactly sure.
Some instruction and some code 
would probably be helpful.
 
Also, would Notepad or Wordpad
fiddle with the newlines?
 
Greg
 
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to