Re: [Ql-Users] SBASIC 'ls' procedure

2017-01-29 Thread Michael Bulford
On Sunday 29 Jan 2017,  Jan Bredenbeek  wrote:
> Okay, here it is. Merge this into your BOOT file and you'll have a
> Unix-like 'ls' command, and even a 'lsr' command to list directories
> recursively. It lists one file per line, with type, size and date info, and
> without the subdirectory names in front of each filename (unlike DIR and
> WSTAT).

Hi Jan,
  Wow!  This is some powerful program.  Also so short as well.  This is so 
welcome.
  Thanks very much for this.
Michael
___
QL-Users Mailing List


[Ql-Users] SBASIC 'ls' procedure

2017-01-29 Thread Jan Bredenbeek
Okay, here it is. Merge this into your BOOT file and you'll have a
Unix-like 'ls' command, and even a 'lsr' command to list directories
recursively. It lists one file per line, with type, size and date info, and
without the subdirectory names in front of each filename (unlike DIR and
WSTAT).

The current version requires SMSQ because it uses LGET and DMEDIUM_DRIVE.
It can be made to work on native QLs without these commands but I couldn't
work out a way to separate the device+dir and file wildcard without it. On
JS and earlier it will probably crash the machine because it has more than
10 LOCal variables...

Here is the link:
https://github.com/janbredenbeek/QL/blob/master/SBASIC/ls_bas

Have fun,

-- 
*Jan Bredenbeek* | Hilversum, NL | j...@bredenbeek.net
___
QL-Users Mailing List