#!/bin/sh # Yes, you can execute this whole script for demonstration. # Of course you also remember comments, the here document, and the : # command, right? :-) Okay, so I effectively (but not literally) # comment out the part between the pairs of __EOT__ without having to # individually comment out most or all the lines in the section. >>/dev/null 2>&1 : << \__EOT__ # { list } syntax: # the syntax is a bit funky, one needs whitespace (one or more # blanks, tabs, or newlines) between { and list, and list must # either end in semi-colon (;), or there must be a newline between # the end of list and } E.g. these won't work: (remember : is a "special" command (built-in, simply and efficiently, returns zero)) {:} {:;} {: } { :} { :} __EOT__ # Whereas these all work: { :;} { :;} { : } { : }