linux - (bash) how to add some iteraion to filename -
i have script creates .html , .txt files every day. 1 file html , txt changed content, need every day new html&txt file date oof creation in file name : index_22-05-2013.html , have these variables in shell script: destination_html="./daily/html/index_$(date +"%f").html" destination_txt="./daily/txt/index_$(date +"%f").txt" and line in shell script running 1 python script , creates html file python `somescript.py` -m ${filelist[0]} ${filelist[1]} > $destination_html and i`m getting file created: index_$(date +"%f").html what must file name : index_22-05-2013.html sorry, not following you, since echo "index_$(date +%f).html" outputs index_2013-08-20.html instead of index_22-05-2013.html need, want use command instead: echo "index_$(date +%d-%m-%y).html" hope helps! :)