Change file creation date to modification date using terminal So I have a bunch of pictures that have incorrect creation dates but their real creation dates are the same as the current modification dates. Is it possible to correct this using some batch command in terminal? I've been messing around with the setFile + stat commands but it's not really working out since I'm terrible with terminal. Does anyone here now the correct way to do this?

Also is it possible to incorporate this into a find command? So that all pics with "IMG" in them get this treatment but no others?

Thanks in advance!
To use @user3439894's answer with find, use the -exec command {} + clause, and put the for loop into a sh script:

find some/path -iname \*.img -exec sh -c 'for f in "$@"; do m="$(GetFileInfo -m "$f")"; SetFile -m "$m" -d "$m" "$f"; done' sh {} +


The 2nd "sh" will become the $0 inside the spawned shell, and the .img filenames will be the positional parameters $1, $2, ...