ex38.sh
来自「Shall高级编程」· Shell 代码 · 共 23 行
SH
23 行
#!/bin/bash. data-file # Load a data file.# Same effect as "source data-file", but more portable.# The file "data-file" must be present in current working directory,#+ since it is referred to by its 'basename'.# Now, reference some data from that file.echo "variable1 (from data-file) = $variable1"echo "variable3 (from data-file) = $variable3"let "sum = $variable2 + $variable4"echo "Sum of variable2 + variable4 (from data-file) = $sum"echo "message1 (from data-file) is \"$message1\""# Note: escaped quotesprint_message This is the message-print function in the data-file.exit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?