AmigaOS 1.3 ' ls ' command
Building on the momentum of my previous achievement with the AskL/AskM commands & the use of environment variable in WB 1.3 scripts, I decided to try to script another thing that I missed BitD : an 'ls' command (by this I mean : a columned and coloured listing of a given folder).
As previously, any comments or tips to improve the way it has been done are welcome. NEW VERSION OF THE SCRIPT AVAILABLE BELOW. SEE POST #8 Code:
ls : https://i.ibb.co/SRPKb6B/WB13-ls.gif |
On the List command you don't need quick if you have lformat. Quick is like lformat=%s.
|
Thank you thomas :great .
Source in 1st post has been updated accordingly. |
Sorry if OT but did any Amiga OS have "ls" command?
I know "dir" works, but just seems a bit unconventional that it wasnt "ls" by default as its more aligned with Unix than DOS. |
"Dir" gives sorted list of names only.
"List" gives unsorted list of details with the option to reformat the output. So List is what comes next to ls. And I don't see why AmigaOS should align with anything. Especially if it's worse than what we have. |
PFS comes with an unix like ls command.
|
Imimmfn: AmiTCP 4.x came with 'ls' in the /bin/ directory, possibly GNU AmiTCP version 2.x and 3.x as well.
Excellent scripting work Malko |
Today I changed a bit the script in order to allow the display to be on 2, 3 or 4 columns. This is done through the COLS argument. Default is now 4 columns.
I also have reorganised the script to try to make it bit faster. I gained 2 seconds as now it only takes a max of 7 seconds to display the result. Not bad considering how it works :p . Furthermore the temporary files are now identified to the shell meaning that it is possible to launch simultaneous ls commands from different Shells. Here is the code of the v1.1 : Code:
ls (v1.1) : https://i.ibb.co/x1PyKM2/ls-v1-1.gif Quote:
|
Quote:
|
I like the colours :)
|
Thanks . I think it helps finding a files as you can focus your eyes on the needed colour :)
|
All times are GMT +2. The time now is 04:13. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.