I have a web server running linux to serve my website, and i'm trying to create a "work safe" theme, so people can use the site at work and have it look inconspicuous. Basically this means I take what I already have, add a couple of files, change another couple, and the rest (maybe 50 files) are identical. I don’t want to have duplicate files if I can help it.
Does anyone know a way to have a linux system look in a directory for a file, and if it’s not there look in another directory? I know I could use symbolic links, but that’d mean I have to create a link for every single file. I can’t just point the whole directory, because I want a few files that are different.
Maybe a little diagram would help, because I don’t know if I’ve explained this well.
Dir one
File1.txt
File2.txt
File3.txt
File4.txt
Dir two
File1.txt (unchanged)
File2.txt (modified)
File3.txt (unchanged)
File5.txt (new)
Files 1 and 3 in dir two are identical, and so should point to the files in dir one. File 2 is different, and file 5 is new.
Any ideas?