Today, Apr 3, 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?
I'm assuming you mean the "hash-bang" line? Scripts use a #! line to tell the system how to process the script. #!/bin/sh says to use the shell, #!/usr/bin/perl says to use perl. This is only applicable when it's the first line in the script. hth Ken -- "Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats." -- Howard Aiken