[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bash - date format



Hallo,

Ich kriegs irgendwie nicht hin den date Befehl in eine Variable zu packen.
Also fast nicht ;-)
timestamp="date +%Y/%m/%d_%T"
echo "`$timestamp - text"
funktioniert.
Aber
timestamp="date +%Y/%m/%d %T"
echo "`$timestamp - text"
funktioniert nicht. Also das BLANK vor dem %T will er nicht.

Was mache ich falsch?
Danke
Matthias
-- 
Don't Panic


Reply to: