>>>>> "RJK" == Ronald J Kimball <[EMAIL PROTECTED]> writes:

  RJK> But I think that you probably want to change 0d 0d 0a to 0d 0a
  RJK> rather than to 0d 0a 0d 0a, as the extra 0d is most likely the
  RJK> result of an overzealous unix2dos conversion.

well that can be done with a slurp and one tr/// call.

perl -ibak -0777e 'tr/\r\n/\n/s' file

that will force all lines to end with \n. but if you really had (multiple)
blank lines in the file, you would lose them.

in any case you have to decide what you want (winblows or unix lines),
whether losing blank lines is an issue, etc. 

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to