Finds files in 'directory' folder with the same name and location but different content than files in 'directory.original' folder and saves location of such files to 'directories' variable.
directories=$(diff -qr directory directory.original | cut -d' ' -f2 | xargs dirname | uniq)