I need to get the modification date of a file so that I can set it on other files using
perl -le 'print((stat shift))' Didn't return what I wanted. I think that you are supposed to use - and + but I'm not sure how to use it correctly.
I though that using the
-t I though it could set it another way, here I tried to set it to 2013 July the 3rd.
touch -t 20130703
But that didn't change it the way I want either. So back to the question, how do I copy another files attributes so that I can set them with