[cs631apue] sorting files containing a dot

mseaton mseaton at stevens.edu
Thu Sep 22 12:03:07 EDT 2016


On 09/22/2016 11:27 AM, Jan Schaumann wrote:
> mseaton <mseaton at stevens.edu> wrote:

> The "standard ls" is that which is defined in the POSIX standard:
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html
> 
> I recommend strongly against writing a single line of code that is not
> absolutely necessary: chances are, it will introduce bugs.
> 
> To quote Ken Thompson:
> "One of my most productive days was throwing away 1000 lines of code."
> 
So, you are okay with this output?
Desktop
Documents
Downloads
Music
NewFolder
Pictures
PrintBlocks.c
Public
SortFileSize.c
Templates
Videos
examples.desktop
file1
functions.h
headers.h
ls
ls.c
ls.c~
mozilla.pdf

Let me know, I will keep my original code if you like.

Marlon
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue


More information about the cs631apue mailing list