Shell script to copy files

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-06-10T05:24:40Z Indexed on 2010/06/10 5:32 UTC
Read the original article Hit count: 256

If there exist a directory,

/backup/ And the files in it are a.gz b.gz c.gz

And another directory /backup-directorybackup And the files in it are a.gz

I need a shells script to compare two directories if the files are present then ignore it and if the filesare not present copy it to the destination directory

Thanks..

© Stack Overflow or respective owner

Related posts about linux

Related posts about shell