[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LF/CR conversion
Simon D. Williams <bb065@chebucto.ns.ca> wrote:
: On 11 Jan 2007, David Wilson wrote:
:
: > Simon D. Williams wrote:
: > > Is there an Apple II program (prefereably ProDOS) that can convert text
: > > files between DOS, Apple and UNIX formats?
: >
: > Do you want a ProDOS application (.SYSTEM program) or an external
: > command for BASIC.SYSTEM? I think I could write a simple one over the
: > weekend.
: >
: > If the former, should it have wildcard support for bulk conversions
: > (this would add some work so would probably have to wait for version
: > two). Should it attempt to auto-identify the type of the source file?
: > What if anything should be done with "naked" CR (missing the following
: > LF) characters in a DOS file?
:
: No need to go to all that work (unless you _really_ want to)... I figured
: out how to use the ProTerm text editor.
:
: Replace ^J with ^M
:
: I didn't realise you had to use the "^", so I was trying to do it with the
: "control" key.
:
: Still, a batch conversion utility would probably be quite handy, and I'm
: surprised nothing already exists other than home-rolled ones.
The easiest thing to do is to use the UNIX utilities dos2unix, unix2dos,
mac2unix and unix2mac. In fact, earlier today I actually found an
on-line mac2unix converter. Not sure if you can do a web file submission
with SIS, though....... 8-)
--Dave Althoff, ][.
/X\ _ *** Respect rides. They do not respect you. ***
/XXX\ /X\ /X\_ _ /X\__ _ _ _____
/XXXXX\ /XXX\ /XXXX\_ /X\ /XXXXX\ /X\ /X\ /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_/XXXXXXX\__/XXX\_/XXX\_/\_/XXXXXX