First of all I want thank all of you who will help me solve this. I have an exam tomorrow and I have to prepare this script for the exam. I am really new to linux and those bourne shell script.
My project should be a portable bourne shell script which scans a directory for the following files:
To remove lines beginning with
# try this:
grep -v "^#" file
To remove lines that may contain spaces (or blank characters) before a
grep -v "^[[:blank:]]*#" file