<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Create/modify a UNIX file with an arbitrary timestamp</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/createmodify_a_unix_file_with_an_arbitrary_timestamp_solaris_system_administration_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 22 Apr 2005 03:46:39 -0000</lastBuildDate><item><title>Re: Create/modify a UNIX file with an arbitrary timestamp</title><link>http://www.tech-recipes.com/rx/440/createmodify-a-unix-file-with-an-arbitrary-timestamp/#comment-2767501</link><description>&lt;p&gt;touch -B &amp;lt;#&amp;gt; will set the timestamp to a date in the past by the number of seconds provided&lt;/p&gt;&lt;p&gt;ie.  touch -B 10 will make the file appear 10 seconds older than the current date.&lt;/p&gt;&lt;p&gt;man touch is more helpful than waiting a few months for an answer :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fracai</dc:creator><pubDate>Fri, 22 Apr 2005 03:46:39 -0000</pubDate></item><item><title>Re: Create/modify a UNIX file with an arbitrary timestamp</title><link>http://www.tech-recipes.com/rx/440/createmodify-a-unix-file-with-an-arbitrary-timestamp/#comment-2767500</link><description>&lt;p&gt;Excellent..... now.....&lt;/p&gt;&lt;p&gt;Who to stamp the timeref file with a date like 15 days ago ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Migxi</dc:creator><pubDate>Thu, 16 Sep 2004 02:56:26 -0000</pubDate></item><item><title>Re: Create/modify a UNIX file with an arbitrary timestamp</title><link>http://www.tech-recipes.com/rx/440/createmodify-a-unix-file-with-an-arbitrary-timestamp/#comment-2767499</link><description>&lt;p&gt;Good question.  I've never noticed this behavior before.  I don't see any options for touch that would make it not follow the link.  If you really need the link to be updated by a touch and it is in the same filesystem as the real file, you could use a hard link.  When you touch a hard link, it updates both the link and the original file.  The hard link doesn't look like a symbolic link, it just looks like a regular file, which may not be desirable.  That's the only suggestion that I have.  Anyone else?&lt;/p&gt;&lt;p&gt;Quinn&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">qmchenry</dc:creator><pubDate>Tue, 27 Apr 2004 01:56:30 -0000</pubDate></item><item><title>Re: Create/modify a UNIX file with an arbitrary timestamp</title><link>http://www.tech-recipes.com/rx/440/createmodify-a-unix-file-with-an-arbitrary-timestamp/#comment-2767498</link><description>&lt;p&gt;How do you handle symbolic links? The touch command affects the target of the symbolic link and not the link itself.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gandalf</dc:creator><pubDate>Mon, 26 Apr 2004 00:27:07 -0000</pubDate></item></channel></rss>