Posterous

various ramblings

-- justin kelly

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

Filed under

  • bash
  • link
June 23, 2010

How to: copy file and append current date in linux/bash

  • Edit
  • Delete
  • Tags
  • Autopost

$ ls

somefile_file.jsp 

$ cp somefile_file.jsp{,.`date +%Y%m%d`}

$ ls

somefile_file.jsp somefile_file.jsp.20100624