Unix/ls: Difference between revisions

184 bytes added ,  3 years ago
m
m (→‎{{header|Phix}}: missing {{out}})
m (→‎{{header|Phix}}: just names)
Line 1,025:
...etc
</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===
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.
7,796

edits