need linux equivalent to windows "echo %date% %time% %COMPUTERNAME%"

Viewed 73611

In Linux,

"echo %date% %time% %COMPUTERNAME%"

returns

%date% %time% %COMPUTERNAME%

not

Fri 09/24/2010 10:46:25.42 WXP2010043001

as Windows does. I need to be able to do this for the logs I'm setting up.

7 Answers
Related