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

📄 ex34.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bash# script "set-test"# Invoke this script with three command line parameters,# for example, "./set-test one two three".echoecho "Positional parameters before  set \`uname -a\` :"echo "Command-line argument #1 = $1"echo "Command-line argument #2 = $2"echo "Command-line argument #3 = $3"set `uname -a` # Sets the positional parameters to the output               # of the command `uname -a`echo $_        # unknown# Flags set in script.echo "Positional parameters after  set \`uname -a\` :"# $1, $2, $3, etc. reinitialized to result of `uname -a`echo "Field #1 of 'uname -a' = $1"echo "Field #2 of 'uname -a' = $2"echo "Field #3 of 'uname -a' = $3"echo ---echo $_        # ---echoexit 0

⌨️ 快捷键说明

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