@SkySmart
Quote:
egrep "error" "$VarLines"
This command is a complete error unless $VarLines is the name of a file.
Please post what Operating System you are running and what Shell you are using. If you do not know how to do this, please ask.
Environment Variables are not files. IMHO Any Script which stores more than one line in an Environment Variable is faulty.
Please post the script you are testing complete with sample input, expected output and actual output. If you have timing issues, please post real time values.
If you do not understand these basic requirements, please post in "Unix for Dummies" and ask lots of relevant questions.