[net.micro.cpm] carriage returns in wordstar

edelheit@MITRE.ARPA (04/09/85)

I have a large file that has a hard carriage return after the end of each 
line and I would like to globally remove those cr's.  Anyone have a quick
and easy way to do it?

Jeff Edelheit
(edelheit at mitre)

APEL@USC-ECL.ARPA (Warren Apel) (04/09/85)

Use the "Find and Replace" command; for the "find" string, enter
a ctrl-N; for the "Replace" string, enter a <cr> (or if you want to 
replace the hard carriage return with a blank, enter a space; for 
"Options", enter GN.  Then when Wordstar starts to update the screen, 
hit any key to stop screen updates and speed up the process.  This will 
result in one long line of text, so you will have to re-format after the
replacement is over.  

What I do when I wat to remove hard carriage returns from a text file,
is to invoke the Find and Replace command at the beginning of the 
file, with ctrl-N for the find string, space for the replace string, and 
just a N for the option, then scroll through the file, hitting a
ctrl-L for each carriage return I want to remove (the ctrl-L simply
repeats the last Find and Replace command entered); then at the end
of each paragraph, enter a ctrl-B (re-format) to reformat the paragraph
to your desired margins with soft carriage returns within the paragraph.

Warren Apel  (APEL@USC-ECL)
-------

edelheit@MITRE.ARPA (04/10/85)

Thanks for all the suggestions.  The most common, and quickest for me to use
was to ^QA for a ^N and then just replace it with a null.  It worked fast
once I hit the escape key.  (For those of you who are unaware, if you are
doing a global replace, i.e., the gn option, if you hit the escape key, the
screen doesn't show each line getting changed.  It really speeds things up.)

I also had several suggestions regarding two PD programs, ENSOFT and FIXTEX.
Both are out at SIMTEL20.  If I had to do this a lot (which I don't) then I
would probably grab one or both of those pgms.  But for the quick and dirty,
the first method works fine.

Jeff Edelheit
(edelheit at mitre)

W8SDZ@SIMTEL20.ARPA (Keith Petersen) (04/10/85)

    I have a large file that has a hard carriage return after the end
    of each line and I would like to globally remove those cr's.
    Anyone have a quick and easy way to do it?

    Jeff Edelheit (edelheit at mitre)

Yes, you'll find it on SIMTEL20 as:

Filename			Type	 Bytes	 CRC

Directory MICRO:<CPM.WSTAR>
WSCR.COM.1			BINARY	  1024  7255H
WSCR.MSG.1			ASCII	   985  BA27H

The .MSG file tells about it.  Run the program without an argument for
a menu.  It works great.
--Keith