home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11582 < prev    next >
Encoding:
Text File  |  1992-12-22  |  2.1 KB  |  41 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!slip201.telnet1.QueensU.CA!dmurdoch
  3. From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
  4. Subject: Re: Normal MSDOS multitasking!
  5. Message-ID: <dmurdoch.245.725066330@mast.queensu.ca>
  6. Lines: 29
  7. Sender: news@knot.ccs.queensu.ca (Netnews control)
  8. Organization: Queen's University, Kingston
  9. References: <1ghb1vINNccb@ub.d.umn.edu> <9212142475@fcshome.UUCP> <dmurdoch.363.724430472@mast.queensu.ca> <1992Dec15.202449.28162@rd.hydro.on.ca> <dmurdoch.365.724454682@mast.queensu.ca> <1992Dec22.003509.8929@rd.hydro.on.ca> <1h7lrmINNpde@aludra.usc.eduOrganization: Queen's University
  10. Date: Tue, 22 Dec 1992 23:18:51 GMT
  11.  
  12. In article <1h7lrmINNpde@aludra.usc.edu> aliu@aludra.usc.edu (Alex Liu) writes:
  13. >  I think what some people are missing is what is the idea of pipes.
  14. >Under Unix, the concept of Pipes comes from the idea of linking small
  15. >prewritten utilities to get something done as opposed to writing a
  16. >entirely new application.
  17.  
  18. That concept is identical under DOS.  The only thing people are arguing 
  19. about is how to implement it - sequentially, as in DOS, or concurrently, as 
  20. in Unix.  The Unix way is better, but in most cases the difference doesn't 
  21. matter.
  22.  
  23. >For example, let say, I want to display all the files in a UNIX directory
  24. >that were created on a certain date, I also want to only display the filenames
  25. >and in reverse sort order in columns.  One way to do it under Unix is:
  26. >
  27. >ls -l | grep 'Aug 12 1990' | cut -c65- | sort -r | pr -t -4
  28. >
  29. >(This is an example. May not work exactly right, but it will with some tweaking
  30. >depending on the version of Unix you are using)
  31.  
  32. This would behave almost identically on a DOS system as on Unix, assuming 
  33. you have equivlent programs for all the commands in the pipe.  The sort 
  34. can't do much until everything previous is complete; it can't output 
  35. anything until it's all done sorting.  The pr can't display things in 
  36. columns until it knows how many items there are.  The Unix version would use 
  37. less temporary disk space, but that's about the only difference.
  38.  
  39. Duncan Murdoch
  40. dmurdoch@mast.queensu.ca
  41.