How to: copy file and append current date in linux/bash
23 Jun 2010$ ls
somefile_file.jsp
$ cp somefile_file.jsp{,.`date +%Y%m%d`}
$ ls
somefile_file.jsp somefile_file.jsp.20100624
$ ls
somefile_file.jsp
$ cp somefile_file.jsp{,.`date +%Y%m%d`}
$ ls
somefile_file.jsp somefile_file.jsp.20100624
Data Engineeer, Business Analytics, Web Developer, Library Technology specialising in PHP and Tableau
Based in Melbourne, Australia
Feel free to contact me justin@kelly.org.au or _justin_kelly