[Info-vax] Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?

Arne Vajhøj arne at vajhoej.dk
Tue Jan 25 19:19:57 EST 2022


On 1/25/2022 2:09 PM, Simon Clubley wrote:
> It would be nice to be able to see the output from a DIRECTORY command
> optionally sorted by one of largest size, smallest size, oldest date,
> newest date, etc.

It could be useful occasionally.

But I suspect that it could be some work for VSI to have DIRECTORY
read all and sort instead of just processing one by one.

I would call it a "nice to have" feature not a "must have" feature.

> Likewise, it would be nice to be able to optionally specify the sort
> order in which filenames are returned by f$search().

If you are scripting then just use something else than DCL
that can do what you want.

Python is a rather obvious choice for something like that.

Arne




More information about the Info-vax mailing list