I want to find all files in
dir1 having corresponding same file names in
dir2, and replace them with the files from
dir1: first.txt second.txt dir2: third.txt first.txt
So I want to remove from
dir1 the old
first.txt file and replace it with
How to achieve this using Bash terminal?