Problem in making a script
Nils Kassube
kassube at gmx.net
Thu Jun 30 10:51:06 UTC 2011
amritpal pathak wrote:
> On Thu, Jun 30, 2011 at 4:37 AM, Nils Kassube <kassube at gmx.net> wrote:
> > > TEMP=$(mktemp)
> >
> > Make a temporary file which doesn't conflict with existing files.
> >
> means temporary file with same name as original?
No, it is a file in /tmp created by mktemp with an arbitrary filename
that did not yet exist. The filename is stored in the variable TEMP. We
don't care about the actual file name because we handle everything with
the variable instead. At the end the temp file is moved to the original
file name anyway.
Nils
More information about the ubuntu-users
mailing list