September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
1
Task/Unix-ls/00META.yaml
Normal file
1
Task/Unix-ls/00META.yaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
--- {}
|
||||
13
Task/Unix-ls/Aime/unix-ls.aime
Normal file
13
Task/Unix-ls/Aime/unix-ls.aime
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
record r;
|
||||
file f;
|
||||
text s;
|
||||
|
||||
f.opendir(1.argv);
|
||||
|
||||
while (~f.case(s)) {
|
||||
if (s != "." && s != "..") {
|
||||
r[s] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
r.vcall(o_, 0, "\n");
|
||||
5
Task/Unix-ls/PowerShell/unix-ls.psh
Normal file
5
Task/Unix-ls/PowerShell/unix-ls.psh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Prints Name, Length, Mode, and LastWriteTime
|
||||
Get-ChildItem | Sort-Object Name | Write-Output
|
||||
|
||||
# Prints only the name of each file in the directory
|
||||
Get-ChildItem | Sort-Object Name | ForEach-Object Name | Write-Output
|
||||
11
Task/Unix-ls/Seed7/unix-ls.seed7
Normal file
11
Task/Unix-ls/Seed7/unix-ls.seed7
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$ include "seed7_05.s7i";
|
||||
include "osfiles.s7i";
|
||||
|
||||
const proc: main is func
|
||||
local
|
||||
var string: name is "";
|
||||
begin
|
||||
for name range readDir(".") do
|
||||
writeln(name);
|
||||
end for;
|
||||
end func;
|
||||
Loading…
Add table
Add a link
Reference in a new issue