Subject: | |
From: | |
Reply To: | |
Date: | Tue, 16 Oct 2001 09:32:47 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Thus it was written in the epistle of Andrew Russel,
>
> However, unlike in the shell, where I can specify '*'
> for all files, there using the method you suggest only
> appears to allow individual file names, not a global
> [log in to unmask] As I want to change the access date/time on all
> the files in my group, I would like to be able to
> wildcard this.
While it seems very odd to me to want to claim that every file in the group
was accessed by your simply logging on, I think I can be of help with the
question. The wildcarding is done not by touch but rather by the shell. When
you do a
touch *
what touch thinks you typed is
touch file1 file2 file3 . . .
So you have at least three options:
1) Use CI programming to loop through all the files, doing a touch on each.
This will be the slowest of the options by far, as it has to fire up
touch multiple times.
2) Call the shell with the -c (IIRC) option. Here's a first pass, off the
top of my head:
xeq sh.hpbin.sys "-c 'touch *'"
This is probably the cleanest and only has to run the shell and touch
each once.
3) Use CI programming to build up a touch command line of the nature:
xeq touch.hpbin.sys "-a file1 file2 file3 file4"
and execute this. I'm not sure whether 2 or 3 will be faster, but
this will allow you to avoid the shell if that is important to you.
HTH,
Ted
--
Ted Ashton ([log in to unmask]) | From the Tom Swifty collection:
Southern Adventist University | "I don't want my cow to be artificially
Deep thought to be found at | inseminated", was Tom's favourable
http://www.southern.edu/~ashted | response.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|