I have this script that works to copy the whole directory. But what I want is to remove all the files that are in one directory and than copy what is in another to that one.
Code: Select all
#!/bin/sh
rm -f /root/my-documents/Manna/
cp -dir /usr/local/Manna2/KJV/001genesistxt/ /root/my-documents/Manna/