Hello. I am writing a script to do some copying of files. I feel confident that I can do that part, but before I even start doing the actual copies, it compares the last modified dates of two files.. I know this seems a very basic question that I would be able to find in the MAN pages for 'stat', but it says to use argument 'amcB' to get the mod date... what?
Oh, and I tried a raw 'stat' (with no args) to see what the output looked like, but it is just a list of numbers...
$ cd ~/ $ stat Documents/ 234881026 195617 drwx------ 7 username staff 0 238 "Sep 19 21:43:13 2011" "Sep 8 11:18:35 2011" "Sep 8 11:18:35 2011" "Jun 18 21:01:24 2009" 4096 0 0 Documents/
I either need someone to tell me a place to find the format of those numbers, (what each of them is).. then I could just have the computer extract the mod date/time.. which I think is a float in seconds... OR if there is a way to just flat out do this, I would definitely settle for that explanation.. thanks.