Posterous

various ramblings

-- justin kelly

  • Blog
  • Home
  • Contact me
« Back to posts
  • Viewed
    times

Filed under

  • bash
  • linux
  • shell
August 30, 2009

linux shell: adding date to file name

  • Edit
  • Delete
  • Tags
  • Autopost

simple way to add the date to the start of a file for archiving etc..

cp test.txt backup/`date +%Y%m%d`.test.txt