Problem
1. Write a script that accepts a pattern and filename as arguments and then counts the number of occurrences of the pattern in the file. (A pattern may occur more than once in a line and comprise only alphanumeric characters and the underscore.)
2. Write a script that doesn't permit some users to log in more than once. It looks up a configuration file that contains a list of those users, one user per line. Where should you place the script code?