Quote:
Originally Posted by johnabraham
i want to comment multiple lines in DHCP config file. as we comment multiple lines by /* */ in c.
|
/* this is comment in C */
# this is comment in unix scripts running in bash or csh #
They call it # pound # that's what we use to comment on most Gnu/Linux/*nix config files as they are found in /etc directory; and since it is line oriented one comment at the beginning of the line is good until the end.
Example:
# if [ "$1" = "stop" ]; then
# echo "Stopping gpm..."
# /usr/sbin/gpm -k
elif [ "$1" = "restart" ]; then
echo "Restarting gpm..."
The 'if', 'echo' and '/usr...' lines are commented and not read; the elif is read and subsequent.
Hope that helps.
Good luck.