<div dir="ltr"><div>drop the l in the -lt, if that doesn't work, then do it a-like-so:<br><br></div>for filename in `ls -lt | awk '{print $NF-2 $NF-1 $NF}'` ; do (same as before)<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 12:56 PM,  <span dir="ltr"><<a href="mailto:joe@actionline.com" target="_blank">joe@actionline.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Joe asked:<br>
>> I have a directory/folder that contains several<br>
>> dozen image files, all with different file dates.<br>
<br>
</span>>> How can I create a script that would display the images<br>
<span class="">>> that those files represent (not just list the files)<br>
>> in date sequence from newest to oldest?<br>
<br>
</span>---------------<br>
Joseph Sinclair replied (in part):<br>
<span class=""><br>
> for filename in "$(ls -lt)" ; do display-image "$filename" ; done<br>
><br>
> replace display-image with your preferred image display tool.<br>
<br>
</span>---------------<br>
<br>
That  script is exactly what I was hoping for,<br>
but sadly, it didn't work for me.  What did I do wrong?<br>
<br>
When I put 7 small images in a folder to try that script,<br>
I got the result shown below:<br>
<br>
$ for filename in "$(ls -lt)" ; do display "$filename" ; done<br>
display: no decode delegate for this image format `15 z3.jpg<br>
-rw-rw-r- joe 4302 Jun 24 11:15 z5.jpg<br>
-rw-rw-r- joe 8878 Jun 24 11:15 z9.jpg<br>
-rw-rw-r- joe 6371 Jun 24 11:15 z8.jpg<br>
-rw-rw-r- joe 4518 Jun 24 11:15 z2.jpg<br>
-rw-rw-r- joe 6017 Jun 24 11:15 z1.jpg<br>
-rw-rw-r- joe 7554 Jun 24 11:15 z6.jpg<br>
-rw-rw-r- joe 5662 Jun 24 11:15 z7.jpg' @ error/constitute.c/ReadImage/532.<br>
<br>
See the results better in this screen capture:<br>
<a href="http://www.upquick.com/temp/decode.error.jpg" rel="noreferrer" target="_blank">http://www.upquick.com/temp/decode.error.jpg</a><br>
<br>
The image shown is not one of my test images.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Todd Millecam</div>
</div>