[plug] Adjust a timestamp by a specified amount

Bernd Felsche bernie at innovative.iinet.net.au
Mon Nov 10 09:15:24 WST 2003


On Sun, Nov 09, 2003 at 06:02:41PM +0800, Cameron Patrick wrote:
> On Sun, Nov 09, 2003 at 05:56:52PM +0800, Bernd Felsche wrote:
> | man stat
> | 
> | Which yields the not-entirely complete solution of
> | 
> | 	stat --format "touch -m -d \`expr %Y + 0$offset\` %n" * | sh
> 
> That's not going to work if the file name contains any quirky
> characters, though.

 	stat --format "touch -m -d \`expr %Y + 0$offset\` '%n'" * | sh

then. Just your basic shell quoting stuff

-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | I'm a .signature virus!
 X   against HTML mail     | Copy me into your ~/.signature
/ \  and postings          | to help me spread!
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list