home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / misc / 6223 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.5 KB

  1. Path: sparky!uunet!wupost!gumby!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
  2. From: sfm@manduca.neurobio.arizona.edu (Stephen Matheson)
  3. Newsgroups: comp.os.msdos.misc
  4. Subject: Re: Echo command in batch files
  5. Message-ID: <1992Nov20.020415.8774@organpipe.uug.arizona.edu>
  6. Date: 20 Nov 92 02:04:15 GMT
  7. References: <1992Nov19.163626.1@violet.ccit.arizona.edu>
  8. Sender: news@organpipe.uug.arizona.edu
  9. Distribution: world,local
  10. Organization: University of Arizona UNIX Users Group
  11. Lines: 39
  12.  
  13. From article <1992Nov19.163626.1@violet.ccit.arizona.edu>,
  14. by f67700241@violet.ccit.arizona.edu (Greg Franklin):
  15.  
  16. > In article <tim.12.722026318@tim.src.utah.edu>,
  17. > tim@tim.src.utah.edu (Tim Ma) writes:
  18.  
  19. >> To "suppress" the CR/LF in the DOS echo command, try:
  20. >> 
  21. >> echo hello>temp world >> temp
  22. >> 
  23. >> Output should be:
  24. >> hello world
  25. >> 
  26. >> Seems to work with MSDOS 5.0.
  27. > With DR DOS 6.0 too.  The question is: What does this batch line do?
  28.  
  29.     echo hello --     sends 'hello' plus a carriage return to
  30.             the display
  31.  
  32.     >temp      --    intercepts the output of 'echo hello' and
  33.             sends it instead to the file named temp
  34.  
  35.     world      --    continuation of the 'echo' command I think,
  36.             now sending 'world' to the display
  37.  
  38.     >> temp    --   intercepts the echoing of 'world' and sends
  39.             it instead to the file named temp, appending
  40.             to it rather than overwriting
  41.  
  42. > Greg "Mockingbird" Franklin
  43.  
  44.  
  45.  
  46.  
  47. --
  48.  
  49. Steve Matheson   Program in Neuroscience   University of Arizona
  50. sfm@neurobio.arizona.edu
  51.