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

📄 ex16.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/basha=23              # Simple caseecho $ab=$aecho $b# Now, getting a little bit fancier (command substitution).a=`echo Hello!`   # Assigns result of 'echo' command to 'a'echo $a#  Note that including an exclamation mark (!) within a#+ command substitution construct #+ will not work from the command line,#+ since this triggers the Bash "history mechanism."#  Inside a script, however, the history functions are disabled.a=`ls -l`         # Assigns result of 'ls -l' command to 'a'echo $a           # Unquoted, however, removes tabs and newlines.echoecho "$a"         # The quoted variable preserves whitespace.                  # (See the chapter on "Quoting.")exit 0

⌨️ 快捷键说明

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