Timeline for answer to How can I batch shift the creation date of files on OS X 10.6.8? by Lri
Current License: CC BY-SA 3.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 17, 2015 at 1:23 | comment | added | Ale |
If somebody is looking for a Linux equivalent, here are the modified commands in the for loop: old=$(stat -c %Y "$f") and touch -t $(date -d @$(($old - 47732400)) +%Y%m%d%H%M.%S) "$f".
|
|
| Oct 26, 2012 at 11:00 | comment | added | bernk | Figured that out eventually, also I take back my previous comment about the script not working for me. It does. I'm not sure what I did wrong at first but it was my fault. Thanks again! I can now fix a bunch of video files which were shot on a camera with an incorrect date setting. | |
| Oct 26, 2012 at 1:56 | comment | added | ckhan | Quotes to ensure it works even if your filenames have spaces in them. | |
| Oct 25, 2012 at 20:40 | comment | added | bernk | I have to admit your script doesn't work for me, but the most important thing is that you introduced me to SetFile and got me well on my way. I'm also don't understand the reason behind the quotes around some of the variables. Totally new to bash scripting. | |
| Oct 25, 2012 at 19:15 | comment | added | bernk | Lauri Ranta, you are a saint! | |
| Oct 25, 2012 at 19:14 | vote | accept | bernk | ||
| Oct 25, 2012 at 15:38 | history | answered | Lri | CC BY-SA 3.0 |