Tag:Conditional judgment

  • Quick start conditional statement and loop of shell script

    Time:2021-9-17

    catalogue 1. Condition judgment 1.1 basic grammar 1.2. Common judgment conditions 1.3. Case examples 1.4. If judgment 1.5 case statement 2. Circulation 2.1 for loop Compare the differences between $* and [email protected] 3.2 whlie cycle I believe you have a certain understanding of shell script, and you must be looking forward to the conditional judgment […]

  • DOS if condition judgment

    Time:2021-3-6

    1. To determine whether a drive, file or folder exists, use the if exist statement;2. Judge whether two strings are equal, and use if “string 1” = = = string 2 “statement;3. To judge whether two values are equal, use the if value 1 equ value 2 statement;4. Judge whether a variable has been assigned, […]

  • Summary of Linux script judgment conditions (must see)

    Time:2021-2-9

    As follows: -B file is true if the file exists and is a special block file-C file is true if the file exists and is a special character file-D file is true if the file exists and is a directory-E file is true if the file exists-F file is true if the file exists and […]