ex22.sh
来自「一本完整的描述Unix Shell 编程的工具书的所有范例」· Shell 代码 · 共 19 行
SH
19 行
#!/bin/bash# Listing the planets.for planet in Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Plutodo echo $planet # Each planet on a separate line.doneechofor planet in "Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Pluto"# All planets on same line.# Entire 'list' enclosed in quotes creates a single variable.do echo $planetdoneexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?