Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!apple!sun-barr!newstop!sun!yipeia!saj From: saj@yipeia.Sun.COM (Scott A. Jordahl) Newsgroups: comp.sys.ibm.pc Subject: Re: How do I ECHO a blank line from batch file? Keywords: batch file ECHO Message-ID: <133635@sun.Eng.Sun.COM> Date: 29 Mar 90 00:22:25 GMT References: <4522@mace.cc.purdue.edu> <22610@watdragon.waterloo.edu> Sender: news@sun.Eng.Sun.COM Reply-To: saj@sun.UUCP (Scott A. Jordahl) Distribution: na Organization: Sun Microsystems, Mountain View Lines: 37 In article <22610@watdragon.waterloo.edu> sbnicol@rose.waterloo.edu (Scott Nicol) writes: >In article <4522@mace.cc.purdue.edu> du4@mace.cc.purdue.edu (Ted Goldstein) writes: >>The other day while working on a little batch file I wanted to >>put a blank line between two small paragraphs of text that get >>ECHOed to the screen, and was unable to do so. If you use ECHO >>by itself, it says 'ECHO is off'. I tried putting some spaces >>after it, but it didn't help. There should be simple answer to >>this, but I seem to be missing it. Any advice would be greatly >>appreciated. > > Try echoing a backspace. Seriously, it worked for me. The line >would look something like: > > echo \8 > >where \8 is the backspace character. You should be able to generate it >by holding down the alt key, hitting 8 on your numeric keypad, and >then releasing the alt key. If your editor doesn't like this, you could >always enter it as "echo " and use debug to change the second space >to a backspace. > >- Scott No. No. No. No. The solution is very simple: echo" (Notice: double quote, no space) I use this all the time in my .bat files. -- Scott |=|=|=|=|=| Scott A. Jordahl |=|=|=|=|=| |==|=|=|==| UUCP: saj@sun.COM |==|=|=|==| |=|=|=|=|=| PHONE: Wk: [415] 336-5463 |=|=|=|=|=| |==|=|=|==| Hm: [408] 270-5619 |==|=|=|==|