Posted By

theonlyalterego on 08/14/08


time Bash linux

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Linux Rename File to Current Date/Time

 / Published in: Bash

  1. mv filename "`date +%Y%m%d_%H`_filename"

Report this snippet  


RSS Icon Subscribe to comments
Posted By: theonlyalterego on August 14, 2008

mv test.txt "date +%Y.%m.%d-%H.%M.%S_test.txt"

You need to login to post a comment.