[Info-vax] *.xml files - carriage return's go into file in VMS - how to remove CR's?

Wilm Boerhout w6.boerhout at planet.nl
Fri Mar 27 15:45:52 EDT 2009


Richard B. Gilbert vaguely mentioned on 27-3-2009 19:51:
> Chuck Aaron wrote:
>> Can anyone help me with how to search/repl or convert the
>> file to eliminate the carriage returns in the xml
>> file in VMS?
>>
>> Thanks,
>> Chuck
> 
> ISTR that TECO is good about things such as removing carriage returns. 
> Figuring out how to use TECO is left as an exercise for the reader; it's 
> be ten to fifteen years since I last needed to do this and memory fades. 
> . . .

$edit /teco bad.xml
*J<@FN/<CR>
//;>EX$$

Where each $ represents hitting the ESC key, and <CR> after FN 
represents hitting the RETURN key. The asterisk on the first line is 
TECO's prompt.

/Wilm



More information about the Info-vax mailing list