Article View: comp.os.msdos.programmer
Article #6167Re: Normal MSDOS multitasking!
From: Duncan Murdoch
Date: Tue, 22 Dec 1992 23:18
Date: Tue, 22 Dec 1992 23:18
29 lines
2228 bytes
2228 bytes
In article <1h7lrmINNpde@aludra.usc.edu> aliu@aludra.usc.edu (Alex Liu) writes: > I think what some people are missing is what is the idea of pipes. >Under Unix, the concept of Pipes comes from the idea of linking small >prewritten utilities to get something done as opposed to writing a >entirely new application. That concept is identical under DOS. The only thing people are arguing about is how to implement it - sequentially, as in DOS, or concurrently, as in Unix. The Unix way is better, but in most cases the difference doesn't matter. >For example, let say, I want to display all the files in a UNIX directory >that were created on a certain date, I also want to only display the filenames >and in reverse sort order in columns. One way to do it under Unix is: > >ls -l | grep 'Aug 12 1990' | cut -c65- | sort -r | pr -t -4 > >(This is an example. May not work exactly right, but it will with some tweaking >depending on the version of Unix you are using) This would behave almost identically on a DOS system as on Unix, assuming you have equivlent programs for all the commands in the pipe. The sort can't do much until everything previous is complete; it can't output anything until it's all done sorting. The pr can't display things in columns until it knows how many items there are. The Unix version would use less temporary disk space, but that's about the only difference. Duncan Murdoch dmurdoch@mast.queensu.ca
Technical Details
Message-ID:
<dmurdoch.245.725066330@mast.queensu.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!slip201.telnet1.QueensU.CA!dmurdochReferences:
<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 UniversityShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!slip201.telnet1.QueensU.CA!dmurdoch From: dmurdoch@mast.queensu.ca (Duncan Murdoch) Subject: Re: Normal MSDOS multitasking! Message-ID: <dmurdoch.245.725066330@mast.queensu.ca> Lines: 29 Sender: news@knot.ccs.queensu.ca (Netnews control) Organization: Queen's University, Kingston 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 Date: Tue, 22 Dec 1992 23:18:51 GMT