Unix/ls: Difference between revisions

Added Bash / Unix Shell Implementation
(Frink)
(Added Bash / Unix Shell Implementation)
Line 1,563:
=={{header|Tcl}}==
<lang tcl>puts [join [lsort [glob -nocomplain *]] "\n"]</lang>
 
=={{header|UNIX Shell}}==
ls sorts by default, if it doesn't work for you, pipe it's output to sort :
<lang bash>
Aamrun $ ls -1
Applications
Desktop
Documents
Downloads
KeyGenerator.png
Library
Movies
Music
My Projects
Pictures
Public
Aamrun $ ls -1|sort
Applications
Desktop
Documents
Downloads
KeyGenerator.png
Library
Movies
Music
My Projects
Pictures
Public
Aamrun $
 
=={{header|Ursa}}==
503

edits