Tk Library Source Code

Artifact [dfa1110a40]
Login

Artifact dfa1110a4018b5e4bd4583b7db5845ddfa2e36f4:

Attachment "fileutil.n.diff" to ticket [477805ffff] added by glennjnn 2001-11-04 00:04:47.
*** fileutil.n~	Sat Nov  3 11:56:13 2001
--- fileutil.n	Sat Nov  3 11:57:10 2001
***************
*** 24,29 ****
--- 24,31 ----
  \fB::fileutil::foreachLine\fR \fIvar filename cmd\fR
  .sp
  \fB::fileutil::grep\fR \fIpattern\fR ?\fIfiles\fR?
+ .sp
+ \fB::fileutil::touch\fR ?\fI-a\fR? ?\fI-c\fR? ?\fI-m\fR? ?\fI-r ref_file\fR? ?\fI-t time\fR? \fIfilename\fR ?\fI...\fR?
  .BE
  .SH DESCRIPTION
  .PP
***************
*** 75,80 ****
--- 77,90 ----
  is a list containing the matches. Each match is a single element of
  the list and contains filename, number and contents of the matching
  line, separated by a colons.
+ .TP
+ \fB::fileutil::touch\fR ?\fI-a\fR? ?\fI-c\fR? ?\fI-m\fR? ?\fI-r ref_file\fR? ?\fI-t time\fR? \fIfilename\fR ?\fI...\fR?
+ Implementation of touch. Alter the atime and mtime of the specified
+ files. If \fI-c\fR, do not create files if they do not already
+ exist. If \fI-r\fR, use the atime and mtime from \fIref_file\fR. If
+ \fI-t\fR, use the integer clock value \fItime\fR. It is illegal to 
+ specify both \fI-r\fR and \fI-t\fR. If \fI-a\fR, only change the 
+ atime. If \fI-m\fR, only change the mtime. 
  
  .SH KEYWORDS
  file utilities