Simply put, a Shell Script is a program that is run by a UNIX/Linux shell. It is a file that contains a series of commands which ...
Create the file in directories which are in (a) and not in (b). Check grep -f.