Unix/ls: Difference between revisions

m
→‎{{header|REXX}}: moved some comments around, changed wording in the REXX section header.
m (→‎{{header|REXX}}: added wording.)
m (→‎{{header|REXX}}: moved some comments around, changed wording in the REXX section header.)
Line 1,152:
 
=={{header|REXX}}==
The following program works under Windows and useduses the Windows   '''DIR'''   command to list a bare-bonesbare─bones sorted list.
 
<lang rexx>/*REXX program lists contents of current folder (ala mode UNIX's LS). */
'DIR /b /oN' /*use Windows DIR: sorts & lists.*/
/*stick a fork in it, we're done.*/</lang>
Notes on the options used for the &nbsp; (Microsoft Windows&reg;) &nbsp; '''DIR''' &nbsp; command:
::::* &nbsp; '''b''' &nbsp; is for <u>'''b'''</u>are format (no heading information or summary).
::::* &nbsp; '''o''' &nbsp; is for <u>'''o'''</u>rder, and it orders (sorts alphabetically) by file <u>'''N'''</u>ame.
<lang rexx>/*REXX program lists contents of current folder (ala mode UNIX's LS). */
'DIR /b /oN' /*use Windows DIR: sorts & lists.*/
/*stick a fork in it, we're done.*/</lang>
{{out|output|text=''':'''}}
<pre>
1
2
3
4
</pre>
 
=={{header|Ruby}}==