I have a folder in my server which contains some files. These are automated that means everyday we get new files automatically which will overwrite the old ones. So want to take
You can be used this step is very useful:
for i in `ls -l folder1 | grep -v total | awk '{print $ ( ? )}'` do cd folder1 cp $i folder2/$i.`date +%m%d%Y` done