Am trying to OCR some documents insitu (from a linux command line on a windows share).  The process of OCRing is find and I have muddled through using the find command to pipe the files through the loop correctly.However I need to preserve the original timestamp for modified.  I am currently trying to use stat and touch as below:#!/bin/bashOLDIFS=$IFS    IFS=$(echo -en \n\b)    for f in `find /mnt/library/Libra/Libra/Ashfords -name *.pdf`         do        ORIGTS=`stat -c %Y $f`        sudo /opt/ABBYYOCR9/abbyyocr9 -rl English -pi -if $f -f PDFA -paemImageOnText -pafpr original -of $f        touch -t $ORIGTS $f    done    IFS=$OLDIFSOf course the touch command fails.  running the commands separately I notice stat -c is something along the lines of this:1334758696which is like no date I know.  I feel as if I am close but cannot work out how to convert the date I have in to a touch friendly version.  Is it some form of seconds from something?
using stat to provide timestamp for touch
bash;scripting;stat
stat's output is a Unix timestamp, also called seconds since the Epoch.All GNU coreutils that accept a date allow you to put a timestamp instead by prefixing the timestamp with an @.So try thistouch -d @$ORIGTS $fSee coreutils - Seconds since the epoch