1

Linux Script to compare two folders and copy missing files

view story
linux-howto

http://www.unix.com – Hi, I need help in shell scripting. If someone can help me, that would be great! Problem. I want Linux Script to compare two folders and copy missing files. Description. I have two directories /dir1 /dir2 I need to copy all distinct/new/unique/missing files from /dir1 and that does not have a correspondent file in /dir2. Condition is , It should only check files 2 days old specified in File pattern below. ex: /dir1 Files. filetoTest_20120923.tar.gz filetoTestAndCopy_20120922.tar.gz filetoRead_20120925 (This file does not have any extension) filetoTest_20120918.tar.gz filetoTestAn (HowTos)