Tuesday, 20 March 2012

Append date timestamp to a file in linux:


cp filename filename.$(date +%Y-%m-%d)
This is useful when backing up a file before making modifications...

No comments:

Post a Comment