in reply to Reading hash
I'm not sure why you would do this. Why not have a simple configuration file like below?
DES
cp file1 file2
rm file1
vi file2
Then simply read and parse this line by line and execute it. Again, not sure why you would want to do this.