how to delete files at booting of system (system startup)

hi all
I have a problem how to write a shell script which delete files/folder form directory whenever system boot and copy last updated folder/file in the specified directory.pse help me ASAP.
i write a script which copy files in directory.I want when system boot up using script it check whether these files are modified.If files are modified then delete this file and copy new file in this location.My problem is how to delete these files when every time system is boot up and copied new file.
there are some files and directories in this location
FILES=/home/new.config
DIR=root/mcms/config

please give some inputs and desired output.

1 Like