Introduction to LINUX ---- shell script syntax

Source: Internet
Author: User
For LINUX beginners, I see & mdash; shell script note that the syntax shellscripts is to use shell functions (syntax and command ), A program compiled with functions such as regular expressions, pipeline commands, and data stream redirection is a plain text file that can be executed without compilation .... For a beginner in LINUX, I see shell script. Note that the syntax shell scripts is a program written by using shell functions (syntax and command) combined with regular expressions, pipeline commands, data stream redirection, and other functions, is a plain text file that can be executed without compilation. 1. the service startup interfaces of linux systems are all in the/etc/init. d/directory. 2. read: the command for reading the keyboard. Similar to C-language scanf and C ++-language cin. Format: read-p "please input...:" filename: use the content entered by the keyboard as the content of the variable filename. 3 echo: variable display command. Echo $ (Computational formula) is used for the display of numerical calculations. there is no space between (or not executed. 4. variable setting rules:. if the variable content requires other commands to provide information, you should use: variable name = $ (command) or variable name = 'command '(SLR number here)
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.