Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Robert17 on May 25, 2011, 11:48:15 AM
-
Hey guys, I'm trying to get a written list of some files in a drawer. They are text documents that need to be converted so I'd like a list so I can check them off as I go.
I have VincEd installed, and can list all the files (246 of them) but I can't figure out how to list them in alphabetical order - at the moment they're a mess of all different files everywhere.
Thanks in advance,
Robert.
-
on OS 3.9 just enter
list sort n
to sort by name.
In 3.1 and below use something like this:
list >ram:tempfile nohead
sort ram:tempfile ram:tempfile
-
@ Robert17
Here's quite a flexible way to create alphabetical lists of your dirs/drawers into a plain textfile... :)
Here's what you need to do to create a plain text file in RAM: called FileList with the contents of drawer sorted for you in alphabetical order... :)
List SORT=N PAT=~(#?.info) FILES LFORMAT "%p%n" To RAM:Filelist
NOTE: the "~" is typed by holding down shift and pressing the large key just below ESC on the Amiga keyboard.... :)
The above example will not include files ending with ".info:" if you wish to include these in your list then just remove the "PAT=~(#?.info)" bit... :)
You can muck about with the above line to just list dirs/ drawers alphabetically or any other combination you choose, just type List ? (return) to see all the options... :)
Sorry... forgot to mention... make sure you CD the dir/drawer you want to create a list of... :)
-
Thanks Thomas and Franko, both good answers.
In the end I used list sort n - copied the output text from the shell window, then pasted into editpad :-)
-
Thanks Thomas and Franko, both good answers.
In the end I used list sort n - copied the output text from the shell window, then pasted into editpad :-)
It might be easier in the future to redirect the identical output to a file instead.
List sort n > [filename]
If OS3.x has the "quick" argument, you can add that to shorten the output further to just the file/dir name.
List sort n quick > [filename]
#6