Hello all. I'm trying to put together a special file to be sent out and this is the response I got back from the company who is trying to use my file:
"The file contains carriage returns and line feed characters at the end of
each line. Please correct this so only line feed characters are at the end
of each line."
Is there a difference between the two? I am totally baffled and am looking for a tool to purchase that can handle this request on a regular basis. Any help would be greatly appreciated. Is their request even doable?
Please help!!!
line feed charachters VS carriage returns
Moderators: AmigoJack, bbadmin, helios, MudGuard
you're in luck..
On a UNIX station, (which is probably what your clients are using) it just uses a newline character (\n)
EDIT : Found the link to the original sofware...
http://www.speedsoft.com/cgicentral/fixcrlf.html
ftp://ftp.speedsoft.com/pub/speedsoft/fixcrlf.exe
Excellent suggestions below but in case you dont want to save ure file with the converted endings, just send this utility to ure clients and be done with that hassel.
CR/LF is what bright spark BillG decided to put at the end of each line to denote a newline in DOS.Is there a difference between the two?
On a UNIX station, (which is probably what your clients are using) it just uses a newline character (\n)
EDIT : Found the link to the original sofware...
http://www.speedsoft.com/cgicentral/fixcrlf.html
ftp://ftp.speedsoft.com/pub/speedsoft/fixcrlf.exe
Excellent suggestions below but in case you dont want to save ure file with the converted endings, just send this utility to ure clients and be done with that hassel.
Last edited by webmasta on Tue Aug 19, 2003 8:35 pm, edited 1 time in total.
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
Welcome to the difference between Mac, Unix and Dos based applications! I hope you enjoy your journey. Mac's use Carriage Return {ASCII 13} as their end of line operator, Unix uses line feeds {ASCII 10} and Windows uses a combination of CR and LF. So, what to do, what to do? The choices are boundless.
a) You can use TP and use Save As and there set your File Format to Unix, Mac or Windows. Unix is what you'd be looking for in this case
b) Use a handy dandy regexp to replace the CR with nothing
c) Have the file recipient run it through dos2unix
d) Install cygwin or simply google dos2unix.exe
e) ftp the file to them in ascii mode
I can probably come up with half a hundred other solutions if you need but I suspect one of the aforementioned will work just fine. Buy Textpad, it's great. I've been using it ever since I switched over from vi and VIM three years ago and I still find handy features I had never even realized I needed.
Oh and if you have money burning a hold in your pocket, you can pay me.
The dos2unix program is free and easy to use. dos2unix myfile1 myfile2 myfile3... Changes are done in place.
a) You can use TP and use Save As and there set your File Format to Unix, Mac or Windows. Unix is what you'd be looking for in this case
b) Use a handy dandy regexp to replace the CR with nothing
c) Have the file recipient run it through dos2unix
d) Install cygwin or simply google dos2unix.exe
e) ftp the file to them in ascii mode
I can probably come up with half a hundred other solutions if you need but I suspect one of the aforementioned will work just fine. Buy Textpad, it's great. I've been using it ever since I switched over from vi and VIM three years ago and I still find handy features I had never even realized I needed.
Oh and if you have money burning a hold in your pocket, you can pay me.