procmail
[Top] [All Lists]

Re: Simple rc check - and Mac user's questions

2002-12-03 09:03:57
On  3 Dec, Jefferis Peterson wrote:
| [...]
| 
| I'm also running into a problem using Bbedit.  I have been using "save as
| Unix" since I assumed that would be closer to ASCII for an upload.  I'm
| concerned about errant carriage returns. However, as Unix the file saves in
| this format with square characters for line returns:
| 
| [...]
| 
| I asked on the Bbedit list without getting help.  Any Mac users out there
| who can help me figure out how to save and upload the file to FreeBSD
| properly?  
| 

Not from the perspective of a Mac user nor a FreeBSD user, but ...

If you're sure the editor is correctly terminating the lines (s/b
linefeed only), then try putting the ftp client in binary mode (at the
ftp prompt, type: bin <enter>) to prevent conversion during file
transfer.  Failing that, on the target system look for a dos2unix
program, or on the command line do:

tr -d '\015' <rcfile >rcfile.new
mv rcfile.new rcfile

That assumes your tr groks '-d'. I don't know if it's a standard option
or not.  man tr if you're unsure, or:

perl -pi -e 's/\r//;' rcfile

-- 
Reply to list please, or append "8" to "procmail" in address if you must.
Spammers' unrelenting address harvesting forces me to this...reluctantly.



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>