Discussion:
RFE: sort by last modified + grep with quotes
James Patterson
2013-03-12 09:27:56 UTC
Permalink
It would be really useful if ls -tr worked.
It would also be useful if ls | grep "Mar 11" worked. My workaround of
ls | grep Mar | grep 11 matches too many other things.

If I am meant to put this in a bug tracker somewhere I will. Thanks!
--
James Patterson
***@operamail.com
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
Alexander V. Lukyanov
2013-03-12 11:10:02 UTC
Permalink
Post by James Patterson
It would be really useful if ls -tr worked.
Try cls command for that.
Post by James Patterson
It would also be useful if ls | grep "Mar 11" worked.
You should quote the quotes, like this:

ls | grep \"Mar 11\"

The reason is that lftp interprets those quotes itself, and thus it's possible
to write:

ls | "head -1;tail -1"

--
Alexander.
James Patterson
2013-03-12 12:21:55 UTC
Permalink
Brilliant! Thanks!
--
James Patterson
Post by Alexander V. Lukyanov
Post by James Patterson
It would be really useful if ls -tr worked.
Try cls command for that.
Post by James Patterson
It would also be useful if ls | grep "Mar 11" worked.
ls | grep \"Mar 11\"
The reason is that lftp interprets those quotes itself, and thus it's possible
ls | "head -1;tail -1"
--
Alexander.
--
http://www.fastmail.fm - Send your email first class
Loading...