On 01/30/2018 06:01 AM, Patrick O'Callaghan wrote: > $ ls -l > total 7388 > -rwxr--r--. 1 poc poc 1036281 Jan 29 11:38 20180129113839_01.jpg > -rwxr--r--. 1 poc poc 1183695 Jan 29 11:38 20180129113839_02.jpg > -rwxr--r--. 1 poc poc 1133299 Jan 29 11:38 20180129113839_03.jpg > -rwxr--r--. 1 poc poc 1066885 Jan 29 11:38 20180129113839_04.jpg > -rwxr--r--. 1 poc poc 879477 Jan 29 11:38 20180129113839_05.jpg > -rwxr--r--. 1 poc poc 1247414 Jan 29 11:38 20180129113839_06.jpg > -rwxr--r--. 1 poc poc 1008515 Jan 29 11:38 20180129113839_07.jpg > > The filenames are generated from the scanning software (a commercial > program running on a Windows VM, and beyond any possibility of > modifying). Clearly these names are just timestamps plus a sequence > number and represent the order the slides were scanned. Adding another > index number via the Shell script isn't going to change this sequence. > In the staging directory, try running $ ls -lrt --time=ctime to order the list by the time each image was put into the directory. 'ctime' is the key. I use this all the time to see the latest new files in a directory, in time order. You can also run $ ls -lrt --time=ctime --full-time to see the (more exact) time each file was moved into the directory. K _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx