Send to a Friend

rexpresso's avatar

In a *nix shell how can I touch a file naming it with the system's current UNIX timestamp?

Asked by rexpresso (922points) November 14th, 2010

I want to do a slightly more complex command, but from you I would just like enough help so I can issue a command like this:

$timestamp = unix_timestamp; touch $timestamp

Of course I’m such a newbie that obviously I’m wrong in this command. But I think you get my idea. Any help is precious!

Thanks!

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.