Copy files from 1 directory to another? SOLVED
Posted: Sat 01 Jun 2013, 15:03
Hello Everyone,
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.
Any ideas on how to do this?
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/