James McCreery wrote:
As I understood things, lines in a script that begin with a "#" character are ignored and can be used for comments. I'm confused though because I see other scripts that seem to use the "!" character to comment-out lines and use the "#" character to begin lines containing conditional syntax (if, endif, else etc). What's going on?
At first I had no idea what you were on about... and I'm still not totally clear. Can you give me an example of a script that uses the ! character? The '#' character is usually used to comment out lines/parts of lines in most scripts (e.g. bash, perl, etc.). When used in 'C' source files (which aren't scripts) they are use to give the preprocessor commands (e.g. #define, #ifdef, #endif, etc.). To be honest, I can't think of anything of the top of my head which, in UNIX, uses '!' as a comment character... Bye, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\