The shell script self-road

Ali cloud university teaching https://edu.aliyun.com/course/155/

  Run chmod + x xx.sh

          ./xx.sh

  

The basic syntax: echo $ output assignment

Special variables:

$*   

 

Use variables

read command to read keyboard input

expr operation include a space expr 3 + 5

Backslash cancel special symbols meaning

 

Backticks usage:

 

 

test: Test of Variables

 

 Whether -n is empty

>= -ge

> -gt

<= -The

May not equal -ne square brackets [] xx -lt xx

 

Guess you like

Origin www.cnblogs.com/shijie-huang/p/12234478.html