Posted by: M$Hacks February 9, 2011
Login in to Rate this Post:
1
?
Liked by
I woud recommend using move instead of copy+remove, its faster. Modified version below:
#!/bin/bash
cd ./current
for FILES in *
do
mv $FILES /previous/${FILES}.`date +%m%d%Y`
done