Discussion:
feature request: ls sorting by time (and possibly the other columns?)
Dan39
2014-09-05 03:06:25 UTC
Permalink
I would like to be able to sort the output of ls by the last modified
time column.

It looks like by default it is sorted by name, which I think is
actually just how the ftpd returns it when doing LIST. Is there
currently no mechanism in lftp for parsing/sorting the file list? With
a quick search I found out about the MLST/MLSD ftp feature which would
allow better handling of the file lists, but I am not sure how often
those are used/supported...

Thanks
Alexander V. Lukyanov
2014-09-05 05:43:39 UTC
Permalink
Post by Dan39
I would like to be able to sort the output of ls by the last modified
time column.
It looks like by default it is sorted by name, which I think is
actually just how the ftpd returns it when doing LIST. Is there
currently no mechanism in lftp for parsing/sorting the file list? With
Yes, there is cls command just for that.
--
Alexander.
Dan39
2014-09-05 08:09:52 UTC
Permalink
Thank you, and sorry to bug again for things I should have found on my own,
but I searched the man page a couple times, but man page doesn't actually
list the options for cls and just says to see "help cls" which then lists
the sort options. All of the options should probably be added to the man...
:P
Post by Alexander V. Lukyanov
Post by Dan39
I would like to be able to sort the output of ls by the last modified
time column.
It looks like by default it is sorted by name, which I think is
actually just how the ftpd returns it when doing LIST. Is there
currently no mechanism in lftp for parsing/sorting the file list? With
Yes, there is cls command just for that.
--
Alexander.
Loading...