dos2unix

J

Jeff Thies

My new web host doesn't like dos line endings: \r\n
Anyone know of a utility that I can run on my local windows box to fix
directories of these?

Jeff
 
J

Jim Higson

Jeff said:
My new web host doesn't like dos line endings: \r\n
Anyone know of a utility that I can run on my local windows box to fix
directories of these?

Jeff

how about tr or sed? Both basic unix tools.
 
T

Toby Inkster

Jeff said:
My new web host doesn't like dos line endings: \r\n
Anyone know of a utility that I can run on my local windows box to fix
directories of these?

There is one called (surprise, surprise) "dos2unix".
 
L

Lemming

My new web host doesn't like dos line endings: \r\n
Anyone know of a utility that I can run on my local windows box to fix
directories of these?

When you ftp the files to the server, use ASCII mode. Only for your
HTML, etc. files of course. Images, etc. should be binary. Most GUI
ftp clients should let you set mode "automatic" or "auto" and they
will work this out for you.

Lemming
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top