topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 12:09 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: wanted: windows command line executable to convert EOL CR<->CRLF  (Read 8822 times)

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
My Google Fu is dull today and I can't seem to focus it down to finding what I want.

I'm using a DOS batch file to do some stuff and I want to call a command line tool that will take all my ASCII files and convert the EOLs from windows format to unix format (and vise versa).

mwb1100

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,645
    • View Profile
    • Donate to Member
It's been a while since I needed to use this kind of utility, but here's a pointer to one (that I haven't tested) that comes with source, so if you have any problems, you can fix them:

  - http://www.xs4all.nl...terlan/dos2unix.html

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,199
    • View Profile
    • Donate to Member
CRLF from Horst Schaeffer's freeware collection PBATS - a 16-bit DOS program, but worked well for me on XP.  A quick check shows it appears to work well under Vista Home Premium as well.
CRLF 1.3 (c) Horst Schaeffer
Filter, makes CR+LF for lines terminated by CR or LF only
Options:
 /C     lines to be terminated by CR only
 /L     ... by LF only
 /T     cut trailing blanks
 /E[n]  remove empty lines [if more than n]

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Thanks. That's what I was looking for.  :Thmbsup: