Re: How to display multiple images in date sequence by file …

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Todd Millecam
Date:  
To: Main PLUG discussion list
Subject: Re: How to display multiple images in date sequence by file date?
drop the l in the -lt, if that doesn't work, then do it a-like-so:

for filename in `ls -lt | awk '{print $NF-2 $NF-1 $NF}'` ; do (same as
before)



On Wed, Jun 24, 2015 at 12:56 PM, <> wrote:

> Joe asked:
> >> I have a directory/folder that contains several
> >> dozen image files, all with different file dates.
>
> >> How can I create a script that would display the images
> >> that those files represent (not just list the files)
> >> in date sequence from newest to oldest?
>
> ---------------
> Joseph Sinclair replied (in part):
>
> > for filename in "$(ls -lt)" ; do display-image "$filename" ; done
> >
> > replace display-image with your preferred image display tool.
>
> ---------------
>
> That script is exactly what I was hoping for,
> but sadly, it didn't work for me. What did I do wrong?
>
> When I put 7 small images in a folder to try that script,
> I got the result shown below:
>
> $ for filename in "$(ls -lt)" ; do display "$filename" ; done
> display: no decode delegate for this image format `15 z3.jpg
> -rw-rw-r- joe 4302 Jun 24 11:15 z5.jpg
> -rw-rw-r- joe 8878 Jun 24 11:15 z9.jpg
> -rw-rw-r- joe 6371 Jun 24 11:15 z8.jpg
> -rw-rw-r- joe 4518 Jun 24 11:15 z2.jpg
> -rw-rw-r- joe 6017 Jun 24 11:15 z1.jpg
> -rw-rw-r- joe 7554 Jun 24 11:15 z6.jpg
> -rw-rw-r- joe 5662 Jun 24 11:15 z7.jpg' @ error/constitute.c/ReadImage/532.
>
> See the results better in this screen capture:
> http://www.upquick.com/temp/decode.error.jpg
>
> The image shown is not one of my test images.
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>




--
Todd Millecam
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss