Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!pilchuck!dataio!uw-entropy!uw-june!roper From: roper@uw-june.UUCP (Michael Roper) Newsgroups: comp.sys.ibm.pc Subject: Getting a null line. (was Re: ECHO blank line?) Message-ID: <3005@uw-june.UUCP> Date: Sun, 23-Aug-87 13:34:52 EDT Article-I.D.: uw-june.3005 Posted: Sun Aug 23 13:34:52 1987 Date-Received: Tue, 25-Aug-87 01:44:45 EDT References: <278@laticorp.UUCP> <1290@cognos.UUCP> <7466@elsie.UUCP> Organization: U of Washington, CSCI, Seattle Lines: 25 In article <7466@elsie.UUCP>, ado@elsie.UUCP (Arthur David Olson) writes: - - Good enough. Now--how about echoing an *empty* line? Use the command - echo. > result - then examine the result file and note the space character at the beginning - of the file. Is that space character important? You bet. Try - echo. | date - (which ought to allow you to display the date without getting prompted - for a new date) to see why. No whitespace is needed around redirection or pipe symbols. Just use 'echo.> result' and 'echo.| date' to do what you want. You can also use the whitespace before redirection to your advantage. I like a space between my prompt and the cursor. I originally used ansi.sys to get it, but naturally got strange results when running on machines with different console drivers. I wanted a portable solution and found that 'prompt $p$g > nul' would always work. -- Mike Roper * Ice Cream... ARPA: roper@june.cs.washington.edu * UUCP: ihnp4!uw-beaver!uw-june!roper * ...it's not just for dessert anymore.