Monday, November 16, 2009

Date output for a distinct filename

On unix,

> date +%Y-%m-%d-%H-%M-%S
2009-11-16-16-33-48

outputfile=/tmp/my-application-output-`date +%Y-%m-%d-%H-%M-%S`.txt

No comments: