Shell tutorial 6-shell comments

Source: Internet
Author: User
The line starting with "#" is a comment and will be ignored by the interpreter.

Sh does not contain comments from multiple lines. Only one # sign can be added to each line. It can only be like this:
# ------------------------------------------ # This is an automatic IPA script, based on webfrogs IPA-build writing: # https://github.com/webfrogs/xcode_shell/blob/master/ipa-build# function: automatically for EtAO iOS app packaging, IPA packages with 14 output channels # features: fully automated packaging, you do not need to enter any parameters # -------------------------------------- ###### start of the user configuration area ####### the project root directory. We recommend that you put this script in the project root directory, you do not need to change the application name here. Make sure that the Application name is consistent with the target_name.app name under product in xcode ##### end of the user configuration area #####

 

What should I do if a large code segment needs to be commented out temporarily and the comment is canceled later? Adding a # symbol to each line is too laborious. You can enclose the code to be annotated with a pair of curly brackets and define it as a function. This function is called everywhere, this code won't be executed, achieving the same effect as the annotation.

Shell tutorial 6-shell comments

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.