From: SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 21-APR-1994 16:43:41.62 To: EVERHART CC: Subj: Re: Editing out , 's X-Newsgroups: comp.os.vms From: fairfield@slacvx.slac.stanford.edu Subject: Re: Editing out , 's Message-Id: <1994Apr20.184323.1@slacvx.slac.stanford.edu> Lines: 57 Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center Date: Thu, 21 Apr 1994 02:43:23 GMT To: Info-VAX@CRVAX.SRI.COM X-Gateway-Source-Info: USENET In article <940420162539.204043c1@alhrg.wpafb.af.mil>, System Manager Wuest writes: > > I got a log file from the command SET HOST 0 /LOG=logfile.name > The file contains visible and characters when I edit it. > > I need to edit out the 's and replace the 's with "invisible" > carriage returns (you know, where I don't see them in EDT ;-). I > already tried TYPE logfile.name /OUT=newfile, but the output looks the > samo. Would CONVERT be an alternative? I've never used CONVERT without > an /FDL= and don't know what to use for this file. A dumb-but-it-works solution: use EVE's REPLACE command. Since you're an EDT user, I'll walk you through once... 1) $EDIT/TPU logfile.name 2) If you're on a VT200-Style keyboard, hit DO, or On a VT100-style keyboard, hit PF4, or If neither of the above gets a "Command: " prompt, hit CTRL/B and CTRL/X to recall the "last" command and erase the line, leaving you at the "Command: " prompt. 3) Type "replace", then use EVE's "QUOTE" command, CTRL/V, followed by CTRL/J to enter an explicit linefeed character as the string to be replaced, and hit return: Command: replace EVE will respond with: New String: Just hit RETURN (for a null replacement). When it finds the first linefeed, EVE will prompt: Replace? Type Yes, No, All, Last, or Quit: Answer with "a" for all, and EVE will remove all occurrences in the file. 4) Repeat steps 2) and 3) above, using CTRL/M (for place of CTRL/J, and EVE will remove all the explicit carriage returns in the file. 5) Hit CTRL/Z to save the file and exit. You're done. :-) -Ken -- Dr. Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX) Stanford, CA 94309 | Voice: (415) 926-2924 FAX: (415) 926-4335 ---------------------------------------------------------------------------- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...