Unix/ls: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: missing {{out}}) |
m (→{{header|Phix}}: just names) |
||
Line 1,025: | Line 1,025: | ||
...etc |
...etc |
||
</pre> |
</pre> |
||
=== just names === |
|||
<lang Phix>?vslice(dir("."),D_NAME)</lang> |
|||
{{Out}} |
|||
<pre> |
|||
{".","..",".hg",".hgignore","1KB.zip","a.exe","address.sqlite","alice_oz.txt","animation.svg",...} |
|||
</pre> |
|||
===prettier output=== |
===prettier output=== |
||
Each element of dir() can be indexed with D_NAME, D_ATTRIBUTES, D_SIZE, D_YEAR, D_MONTH, D_DAY, D_HOUR, D_MINUTE, and D_SECOND, and of course you can easily format these things a bit nicer. |
Each element of dir() can be indexed with D_NAME, D_ATTRIBUTES, D_SIZE, D_YEAR, D_MONTH, D_DAY, D_HOUR, D_MINUTE, and D_SECOND, and of course you can easily format these things a bit nicer. |