⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex13.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/basha=4b=5#  Here "a" and "b" can be treated either as integers or strings.#  There is some blurring between the arithmetic and string comparisons,#+ since Bash variables are not strongly typed.#  Bash permits integer operations and comparisons on variables#+ whose value consists of all-integer characters.#  Caution advised, however.echoif [ "$a" -ne "$b" ]then  echo "$a is not equal to $b"  echo "(arithmetic comparison)"fiechoif [ "$a" != "$b" ]then  echo "$a is not equal to $b."  echo "(string comparison)"  #     "4"  != "5"  # ASCII 52 != ASCII 53fi# In this particular instance, both "-ne" and "!=" work.echoexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -