home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!gumby!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
- From: sfm@manduca.neurobio.arizona.edu (Stephen Matheson)
- Newsgroups: comp.os.msdos.misc
- Subject: Re: Echo command in batch files
- Message-ID: <1992Nov20.020415.8774@organpipe.uug.arizona.edu>
- Date: 20 Nov 92 02:04:15 GMT
- References: <1992Nov19.163626.1@violet.ccit.arizona.edu>
- Sender: news@organpipe.uug.arizona.edu
- Distribution: world,local
- Organization: University of Arizona UNIX Users Group
- Lines: 39
-
- From article <1992Nov19.163626.1@violet.ccit.arizona.edu>,
- by f67700241@violet.ccit.arizona.edu (Greg Franklin):
-
- > In article <tim.12.722026318@tim.src.utah.edu>,
- > tim@tim.src.utah.edu (Tim Ma) writes:
-
- >> To "suppress" the CR/LF in the DOS echo command, try:
- >>
- >> echo hello>temp world >> temp
- >>
- >> Output should be:
- >> hello world
- >>
- >> Seems to work with MSDOS 5.0.
- >
- > With DR DOS 6.0 too. The question is: What does this batch line do?
-
- echo hello -- sends 'hello' plus a carriage return to
- the display
-
- >temp -- intercepts the output of 'echo hello' and
- sends it instead to the file named temp
-
- world -- continuation of the 'echo' command I think,
- now sending 'world' to the display
-
- >> temp -- intercepts the echoing of 'world' and sends
- it instead to the file named temp, appending
- to it rather than overwriting
-
- > Greg "Mockingbird" Franklin
-
-
-
-
- --
-
- Steve Matheson Program in Neuroscience University of Arizona
- sfm@neurobio.arizona.edu
-