amiga.org
     
iconAll times are GMT -6. The time now is 08:30 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » Amiga Software Issues and Discussion » List contents of a drawer in alphabetical order?

Amiga Software Issues and Discussion This forum exists for the discussion of the use, issues with, and fun brought about by classic and next generation Amiga software.

Reply
 
Thread Tools Display Modes
Old 05-25-2011, 04:48 AM   #1
Robert17
Cult Member
Points: 12,331, Level: 72 Points: 12,331, Level: 72 Points: 12,331, Level: 72
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Apr 2004
Location: Norfolk, UK
Posts: 964
Send a message via MSN to Robert17
Default List contents of a drawer in alphabetical order?

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.
__________________
A4000D CSMK3 060/50mhz, 144mb ram, CVPPC video - Currently broken scsi :-(
A4000D/T Warpengine 4040.
A2000 Blizzard 2060, Picasso 2 and Indivision ECS.
A2000 GVP G-Force 030-40mhz, 13mb Ram and Amber and Mechware SCSI Card reader.
A1200D 030/50 34mb ram with Indivision AGA.

Last edited by Robert17; 05-25-2011 at 04:48 AM.. Reason: typo.
Robert17 is offline   Reply With Quote
Old 05-25-2011, 05:12 AM   #2
Thomas
Kindred of Babble-on
Points: 13,942, Level: 76 Points: 13,942, Level: 76 Points: 13,942, Level: 76
Activity: 13% Activity: 13% Activity: 13%
 
Thomas's Avatar
 
Join Date: Jun 2002
Posts: 2,925
Default Re: List contents of a drawer in alphabetical order?

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
__________________
Email: thomas-rapp@web.de
Home: thomas-rapp.homepage.t-online.de/
Thomas is offline   Reply With Quote
Old 05-25-2011, 05:17 AM   #3
Franko
Banned
Points: 22,799, Level: 93 Points: 22,799, Level: 93 Points: 22,799, Level: 93
Activity: 8% Activity: 8% Activity: 8%
 
Join Date: Jun 2010
Posts: 5,707
Blog Entries: 33
Default Re: List contents of a drawer in alphabetical order?

@ 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...

Last edited by Franko; 05-25-2011 at 05:26 AM.. Reason: Added info...
Franko is offline   Reply With Quote
Old 05-25-2011, 12:50 PM   #4
Robert17
Cult Member
Points: 12,331, Level: 72 Points: 12,331, Level: 72 Points: 12,331, Level: 72
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Apr 2004
Location: Norfolk, UK
Posts: 964
Send a message via MSN to Robert17
Default Re: List contents of a drawer in alphabetical order?

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 :-)
__________________
A4000D CSMK3 060/50mhz, 144mb ram, CVPPC video - Currently broken scsi :-(
A4000D/T Warpengine 4040.
A2000 Blizzard 2060, Picasso 2 and Indivision ECS.
A2000 GVP G-Force 030-40mhz, 13mb Ram and Amber and Mechware SCSI Card reader.
A1200D 030/50 34mb ram with Indivision AGA.
Robert17 is offline   Reply With Quote
Old 05-25-2011, 01:59 PM   #5
number6
Premium Member
Points: 7,481, Level: 57 Points: 7,481, Level: 57 Points: 7,481, Level: 57
Activity: 18% Activity: 18% Activity: 18%
 
Join Date: Mar 2005
Posts: 676
Default Re: List contents of a drawer in alphabetical order?

Quote:
Originally Posted by Robert17 View Post
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
number6 is offline   Reply With Quote
Reply

Bookmarks

Tags
drawer , order , list , contents , alphabetical

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump