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

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

Justin Kelly

Justin Kelly

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