e.g. directory containing jpeg files: how to easily open just the most recent jpeg in the current directory?
|
feedback
|
|
The
| |||||||
feedback
|
|
What you really want is first file of a non-reversed time-based list.
The -r is for humans because we want the last thing on the screen that has scrolled by, rather than the first. In the case of the machine figuring it out, it might as well use | |||
|
feedback
|
|
With zsh:
The glob qualifier In other shells:
but beware that if you have nonprintable characters or bytes in your file names (which typically happens if you have file names in a different character set from your locale), | ||||
|
feedback
|