simple Shell script to generate patterns for source code