Posted by: jhapaliketo February 8, 2011
Unix Shell Scripting
Login in to Rate this Post:     0       ?        
I have written the following script to copy files from a directory to another directory and add time stamp to the copied file and remove the original file. I want to know if it is good for bash scripting.
 

#!/bin/bash
for FILES in ./current/*
do
cp -ur $FILES /previous/${FILE}.`date +%m%d%Y`
rm ./current/$FILES
done
Read Full Discussion Thread for this article