home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / misc / 3461 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.misc
  2. Path: sparky!uunet!dcatlas!joet
  3. From: joet@dcatlas.dot.gov (Joe Trott)
  4. Subject: Re: *****************HELP neede in DOS 5.0******************
  5. Message-ID: <1992Aug31.152147.18002@dcatlas.dot.gov>
  6. Organization: U.S Dept. of Transportation
  7. References: <1992Aug30.013336.21376@cc.umontreal.ca>
  8. Date: Mon, 31 Aug 1992 15:21:47 GMT
  9. Lines: 26
  10.  
  11. cholette@JSP.UMontreal.CA (Cholette Martin) writes:
  12.  
  13.  
  14. >Hello, I need to concatenate to text files together in DOS 5.0 , I have looked
  15. >in many manuals but I can't seem to find the answer. It seems straight
  16. >forward enough yet I am unable to find the answer. I need to append to text
  17. >files into a single text file a.txt + b.txt -> c.txt
  18.  
  19. >The equivalent of what I need in UNIX is:
  20.  
  21. >                        cat a.txt b.txt > c.txt
  22.  
  23. The DOS equivalent is:
  24.  
  25.             copy a.txt+b.txt c.txt
  26.  
  27. If you want breaks between them, create a file (e.g. ff.txt) containing a
  28. form feed (Ctrl-L <=> CHR(12)) and/or whatever other separators you want, 
  29. and use:
  30.  
  31.             copy a.txt+ff.txt+b.txt c.txt
  32.  
  33. Of course, in both examples, full directory specs are allowed.
  34.  
  35. -JTT
  36.  
  37.