1. Write a shell script and a shell script

Source: Internet
Author: User

1. Write a shell script and a shell script

I. shell and shell scripts

In linux, the text starting with #/bin/bash is interpreted by the shell interpreter.

Shell is an application that provides an interface through which users can access the services of the operating system kernel.

Shell script is a script program written for shell. The shell mentioned in the industry usually refers to shell scripts. shell and shell script are two different concepts.

Different Versions of sh, bash, and other script interpreters are developed along the way.

Ii. Basic shell functions

1. indent

Shell scripts do not have mandatory indentation requirements for programming, which is different from python that uses indentation to implement code boundaries.

2. Variables

 

Http://www.runoob.com/linux/linux-shell-test.html

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.