> # Hi
> #
> # How can I change the modified date/time of a file to a past/future
> # time? Is there a shell command or utility available in Solaris or HP-UX
> # to do that? I only know "touch" that updates the file modified
> Then you don't know touch. :)
> Look at the man page and pay attention to the -t flag.
Solaris 2.5.1
> man touch
...
SYNOPSIS
touch [-acm] [-r ref_file] file...
touch [-acm] [-t time] file...
touch [-acm] [date_time] file...
But
> touch -t 01011200 MyFile
usage: touch [-amcf] file ...
> which touch
/usr/bin/touch
If
> man -s 1b touch
...
SYNOPSIS
/usr/ucb/touch [-acfm] file...Obviously, my "touch" command and its
manpage don't match. :^(
Which is the default "touch" in Solaris 2.5.1? Where can I get the "touch"
for Solaris 2.5.1 that allows me to set a specific time/date stamp, as
described in the manpage?
Hon-ChiQuote:> # date/time to the current time only, not to a specific past/future time.
> #
> # Hon-Chi