The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html><head><title>touch</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
</head>
<body class='pod'>
<!--
  generated by Pod::Simple::HTML v3.01,
  using Pod::Simple::PullParser v2.02,
  under Perl v5.008002 at Thu Aug  5 13:56:32 2004 GMT.

 If you want to change this HTML document, you probably shouldn't do that
   by changing it directly.  Instead, see about changing the calling options
   to Pod::Simple::HTML, and/or subclassing Pod::Simple::HTML,
   then reconverting this document from the Pod source.
   When in doubt, email the author of Pod::Simple::HTML for advice.
   See 'perldoc Pod::Simple::HTML' for more info.

-->

<!-- start doc -->
<a name='___top' class='dummyTopAnchor' ></a>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p>touch -- change access and modification times of files.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<p>touch [-acfm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file [files ...]</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p><i>touch</i> sets the access and modification timestamps of files.
By default,
both the access and modification times are set to the current time.
If necessary,
files will be created.</p>

<p><i>touch</i> exits succesfully if and only if all timestamps could be set succesfully.</p>

<h2><a class='u' href='#___top' title='click to go to top of document'
name="OPTIONS"
>OPTIONS</a></h2>

<p><i>head</i> accepts the following options:</p>

<dl>
<dt><a name="-a"
>-a</a></dt><p class="pad"></p>

<dd>Set the access time of the specified files only,
unless <i>-m</i> is given as well.</dd><p class="pad"></p>

<dt><a name="-c"
>-c</a></dt><p class="pad"></p>

<dd>Do not create non-existing files.
No warning is generated,
and it will not influence the exit status.</dd><p class="pad"></p>

<dt><a name="-f"
>-f</a></dt><p class="pad"></p>

<dd>This option is ignored,
and only recognized for compatability reasons.</dd><p class="pad"></p>

<dt><a name="-m"
>-m</a></dt><p class="pad"></p>

<dd>Set the modification time of the specified files only,
unless <i>-a</i> is given as well.</dd><p class="pad"></p>

<dt><a name="-r_file"
>-r file</a></dt><p class="pad"></p>

<dd>Use the access and modification time of <i>file</i> instead of the current time.</dd><p class="pad"></p>

<dt><a name="-t_[[CC]YY]MMDDhhmm[.SS]"
>-t [[CC]YY]MMDDhhmm[.SS]</a></dt><p class="pad"></p>

<dd>Set the access and modification times to the specified time.
If <b>YY</b> is present,
but <b>CC</b> is not,
then <b>CC</b> is assumed to be 19 if <b>YY</b> is larger than 69,
and 20 otherwise.
If <b>YY</b> is not present,
the current year is assumed.</dd><p class="pad"></p>

<dd>It should be noted that many systems cannot deal with timestamps before Jan 1,
1970 or after Jan 19,
2038.</dd><p class="pad"></p>
</dl>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="ENVIRONMENT"
>ENVIRONMENT</a></h1>

<p>The working of <i>touch</i> is not influenced by any environment variables.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="BUGS"
>BUGS</a></h1>

<p><i>touch</i> does not implement the <i>-f</i> option.</p>

<p><i>touch</i> uses <code lang='und' xml:lang='und'>Time::Local</code> to translate the time format to epoch seconds</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="STANDARDS"
>STANDARDS</a></h1>

<p>This <i>head</i> implementation is compatible with the <b>OpenBSD</b> implementation,
except for the <i>-f</i> option.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="REVISION_HISTORY"
>REVISION HISTORY</a></h1>

<pre lang='und' xml:lang='und'>    $Log: touch.abigail.html,v $
<pre lang='und' xml:lang='und'>    Revision 1.3  2004/08/05 14:24:01  cwest
<pre lang='und' xml:lang='und'>    cleanup, new version number on website
<pre lang='und' xml:lang='und'>
    Revision 1.1  2004/07/23 20:10:18  cwest
    initial import

    Revision 1.1  1999/02/28 13:00:24  abigail
    Initial revision</pre>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>

<p>The Perl implementation of <i>touch</i> was written by Abigail, <i>abigail@fnx.com</i>.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is copyright by Abigail 1999.</p>

<p>This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.</p>

<!-- end doc -->

</body></html>