Shell comments for the Linux Shell Series Tutorial (d)

Source: Internet
Author: User

This article is part (iv) of the Linux Shell Series tutorial, more on the Shell Tutorial: Linux Shell Series Tutorials

Like many programming languages, there are annotation symbols in the shell, and today we introduce the syntax and usage of annotations in the shell.

Comments in the shell begin with the "#" sign, and all code that begins with the "#" sign is ignored by the interpreter.

For example, the following code:

#!/bin/bash# author:linuxdaxue.com# Date:2016-05-15echo "What's your name?" Read Personecho "Hello, $PERSON"

The Author field and date field that begin with the "#" sign are comments in the shell.

And there is no multiline comment in the shell, only a single-line comment, so this is the only way to annotate the code.

For more shell tutorials See: Linux Shell Series Tutorials

This article fixed link: Linux University network--linux Shell Series Tutorial (four) Shell comments

Shell comments for the Linux Shell Series Tutorial (d)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.