Unix/ls: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added wording.)
m (→‎{{header|REXX}}: moved some comments around, changed wording in the REXX section header.)
Line 1,152: Line 1,152:


=={{header|REXX}}==
=={{header|REXX}}==
The following program works under Windows and used the Windows DIR command to list a bare-bones sorted list.
The following program works under Windows and uses the Windows   '''DIR'''   command to list a bare─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:
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; '''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) by file <u>'''N'''</u>ame.
::::* &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}}==
=={{header|Ruby}}==