Re: Sorting PC directories [message #79014] |
Sun, 02 June 2013 23:11 |
heiser
Messages: 8 Registered: May 2013
Karma: 0
|
Junior Member |
|
|
Message-ID: <290@cca.UUCP>
Date: Sun, 16-Sep-84 23:27:30 EDT
Article-I.D.: cca.290
Posted: Sun Sep 16 23:27:30 1984
Date-Received: Tue, 25-Sep-84 08:20:49 EDT
References: <470@houxt.UUCP>
Organization: Computer Corp America, Cambridge
Lines: 6
Yes, there is a way to sort IBM PC directories, but since I don't have
a DOS manual here, I can't give you the command. There is a method of
running the dir command through the sort filter, as I recall. Check
under Filters and/or Pipelines.
|
|
|
Re: Re: Sorting PC directories [message #79017 is a reply to message #79014] |
Sun, 02 June 2013 23:11 |
seaburg
Messages: 64 Registered: May 2013
Karma: 0
|
Member |
|
|
Message-ID: <24700066@uiucdcs.UUCP>
Date: Thu, 20-Sep-84 20:58:00 EDT
Article-I.D.: uiucdcs.24700066
Posted: Thu Sep 20 20:58:00 1984
Date-Received: Tue, 25-Sep-84 21:14:12 EDT
References: <290@cca.UUCP>
Lines: 14
Nf-ID: #R:cca:-29000:uiucdcs:24700066:000:388
Nf-From: uiucdcs!seaburg Sep 20 19:58:00 1984
To sort a directory, enter
dir | sort
If you don't want it to scroll away from you before you can read it,
try
dir | sort | more
instead. SORT and MORE are not resident commands in DOS 2.1, so they
must be on the disk. These create temporary files for the pipeline,
so you must have enough space for them also. (The temporary files get
erased at the end of the pipe, I believe.)
|
|
|
Re: Re: Sorting PC directories [message #79018 is a reply to message #79014] |
Sun, 02 June 2013 23:11 |
thielges
Messages: 11 Registered: May 2013
Karma: 0
|
Junior Member |
|
|
Message-ID: <5100023@uiucdcsb.UUCP>
Date: Thu, 20-Sep-84 22:07:00 EDT
Article-I.D.: uiucdcsb.5100023
Posted: Thu Sep 20 22:07:00 1984
Date-Received: Tue, 25-Sep-84 21:14:29 EDT
References: <290@cca.UUCP>
Lines: 8
Nf-ID: #R:cca:-29000:uiucdcsb:5100023:000:116
Nf-From: uiucdcsb!thielges Sep 20 21:07:00 1984
To sort a directory, type the command :
dir | sort/+14
source : IBM-PC DOS manual, page 10-26
Bart Thielges
|
|
|
Re: Re: Sorting PC directories [message #79019 is a reply to message #79014] |
Sun, 02 June 2013 23:11 |
thielges
Messages: 11 Registered: May 2013
Karma: 0
|
Junior Member |
|
|
Message-ID: <5100025@uiucdcsb.UUCP>
Date: Thu, 20-Sep-84 22:41:00 EDT
Article-I.D.: uiucdcsb.5100025
Posted: Thu Sep 20 22:41:00 1984
Date-Received: Tue, 25-Sep-84 21:14:50 EDT
References: <290@cca.UUCP>
Lines: 2
Nf-ID: #R:cca:-29000:uiucdcsb:5100025:000:69
Nf-From: uiucdcsb!thielges Sep 20 21:41:00 1984
oops, my sort command suggestion sorts by size. Leave off the /+14
|
|
|
Re: Re: Sorting PC directories [message #79047 is a reply to message #79014] |
Sun, 02 June 2013 23:11 |
guido
Messages: 50 Registered: May 2013
Karma: 0
|
Member |
|
|
Message-ID: <6002@mcvax.UUCP>
Date: Mon, 24-Sep-84 20:21:54 EDT
Article-I.D.: mcvax.6002
Posted: Mon Sep 24 20:21:54 1984
Date-Received: Thu, 27-Sep-84 04:31:42 EDT
References: <290@cca.UUCP> <5100025@uiucdcsb.UUCP>
Reply-To: guido@mcvax.UUCP (Guido van Rossum)
Organization: "Stamp Out BASIC" Committee, CWI, Amsterdam
Lines: 8
I have a C program which does this. In fact, it mimics the behaviour
of "ls" on Unix. However, it only prints the file names, N per line.
On request, I will post it (though you should be able to write it
yourself). You need a Lattice C compiler and DOS 2.0.
--
Guido van Rossum, "Stamp Out BASIC" Committee, CWI, Amsterdam
guido @ mcvax
|
|
|