From: Shaw, Ronan (Ronan.Shaw at domain DIGIFONE.COM)
Date: Wed 17 May 2000 - 16:46:07 IST
> > > Is there an easy way with the bash to get
> > > a temporary (ie. unique) filename. I don't
> > > want my prog to delete files called "new"
> > > and "old" that may already exist
> The shell appears to interpret $$ as an instruction to generate a name
> vim blah.$$
> And it opens a file "blah.10241"
$$ is a shell variable for the current process id.
It's unique unless you use it somewhere else .... although why you'd do
Don't forget to delete the file later....
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:12 GMT