MPE/iX Shell and Utilities Reference Manual, Vol 2

touch(1) MPE/iX Shell and Utilities touch(1)
NAME
touch — change file modification date
SYNOPSIS
touch [–acm][–f agefile][–r agefile][–t time] file ...
touch [–acm] time file ...
DESCRIPTION
The touch command changes certain dates for each file argument. By default, touch sets
both the date of last file modification and the date of last file access to the current time. This
is useful for maintaining correct release times for software and is particularly useful in con-
junction with the
MAKE software development facility.
Options
touch accepts the following options:
–a sets only the access time.
–c does not create any files that do not already exist. Normally, touch creates such
files.
–m sets only the modification time.
If you do not specify –a or –m, touch behaves as though you specified both.
To tell touch to use a time other than the current, use one of the following options:
–f agefile
is an obsolete version of the
POSIX-compliant –r option.
–r agefile
sets the access and modification times (as indicated by the other options) to those
kept for agefile.
–t time
specifies a particular time using the format accepted by date (see date(1) in the
MPE/iX Shell and Utilities Reference Manual). An obsolete (but still supported) ver-
sion of this command lets you omit the –t.
EXAMPLES
touch newfile
sets the modification time of newfile to the present.
touch -t 8001031305 oldfile
sets the modification time of oldfile to 13:05 on January 3, 1980.
Commands and Utilities 1-605