Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!osu-cis!att!twitch!hoqax!twb From: twb@hoqax.UUCP (T.W. Beattie) Newsgroups: comp.unix.questions Subject: Re: make temp files? Message-ID: <1833@hoqax.UUCP> Date: 24 Sep 88 00:23:01 GMT References: <48200010@hcx1> Organization: AT&T Bell Labs, Holmdel, NJ Lines: 15 In article <48200010@hcx1>, ldh@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.