I am trying to write a simple bash script or one line command to basically sort a bunch of .jpg files by date from `identify -verbose` command.
The reason I don't use `ls -l` command to parse date is because the date stamp is incorrect.
Here's what I have:
Code:
identify -verbose *.jpg | awk '/Date Time Original: 2005:02:13 / {print $4}'
How do I change this command to print the file name instead of date?
And how would I pass those files to be copied to other directory?
Thanks in advance.