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

Web Developer, Business Analytics, Data Engineer specialising in PHP and Tableau

Based in Melbourne, Australia

Feel free to contact me justin@kelly.org.au or _justin_kelly

Leave a comment

Name Notify me of replies by email.