Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 08, 2016, 12:20:48 PM
  • Proudly celebrating 10 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 4637 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,522
    • View Profile
    • Donate to Member
Re: wanted: windows command line executable to convert EOL CR<->CRLF
« Reply #1 on: May 30, 2010, 12:00:15 PM »
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: 2,927
    • View Profile
    • Donate to Member
Re: wanted: windows command line executable to convert EOL CR<->CRLF
« Reply #2 on: May 30, 2010, 02:50:14 PM »
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
Re: wanted: windows command line executable to convert EOL CR<->CRLF
« Reply #3 on: May 31, 2010, 07:26:35 AM »
Thanks. That's what I was looking for.  :Thmbsup: