make temp files?
T.W. Beattie
twb at hoqax.UUCP
Sat Sep 24 10:23:01 AEST 1988
In article <48200010 at hcx1>, ldh at hcx1.SSD.HARRIS.COM writes:
>
> I was wondering if there is some "readymade" way that a shell can create a
> unique temporary file, as in the C routine "mktemp(XXXXX)". Thanks!
> Leo Hinds
The shell variable "$" contains the current process number.
For example:
>TEMP$$
would create a file named
TEMP1234
if the current process was number 1234.
DISCLAIMER: I suppose there are shells which don't provide this.
Tom.
More information about the Comp.unix.questions
mailing list