Code blocks are inserted between <code></code>
For lessthan symbol --
Entity references are similar, but use symbolic names to represent the characters. Entity references also have three parts:
* a leading ampersand character, (&),
* the name of the entity (in ascii characters)
* a terminating semicolon (;).
Thus the entity reference for less than symbol (<) is (& l t ;)-- with no space in between.
Friday, December 7, 2007
Shell script put multiple line comment
Q. I'd like to use multiline comments under shell script. Under C / C++ I can use format
/*
my c code
comment # 2
blah
*/
How do I put multi line comment under a shell script?
A. By default shell script can be commented out prefixing # character for example:
# my comment
For multilinecomment use
# my comment 1
# my comment 2
# my comment N
/*
my c code
comment # 2
blah
*/
How do I put multi line comment under a shell script?
A. By default shell script can be commented out prefixing # character for example:
# my comment
For multilinecomment use
# my comment 1
# my comment 2
# my comment N
#!/bin/bash
echo "Say Something"
<<COMMENT1
your comment 1
comment 2
blah
COMMENT1
echo "Do something else"
why this blog ?
I dedicate this blog to save my finding during my day job .. thats Linux administration.. painless painfull job :) :(
Subscribe to:
Posts (Atom)