Sunday 14 April 2013

Quickly comment/uncomment whole scripts

#!/usr/bin/ksh
#set -x
#-----VARIABLES
# You must comment out one of the two VAR lines below depending on whether
you want comments turned on or off in front of all your executable commands.
# The VAR line below, when uncommented, will comment out all commands with
$VAR in front of them
#VAR=": #"; export VAR
# The VAR line below, when uncommented, will allow execution of all commands
with $VAR in fron of them.
VAR=""; export VAR
#-----MAIN
$VAR date

0 blogger-disqus:

Post a Comment