https://github.com/daixinye/shell-playground
https://github.com/daixinye/shell-playground
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/daixinye/shell-playground
- Owner: daixinye
- Created: 2018-03-22T06:16:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-07T12:30:44.000Z (over 7 years ago)
- Last Synced: 2025-03-13T22:21:21.544Z (over 1 year ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shell Playground
一些 Shell 脚本的基本练习。
## 类型
- [string](./type/string.sh)
## 输入/输出
- [echo](./IO/hello.sh)
- [cat heredoc](./IO/heredoc.sh)
- [read 数字](./IO/read-integer.sh)
## 循环
- [for 循环参数](./loop/for-param.sh)
- [c语言风格的for循环](./loop/for-c.sh)
- [while 打印数字](./loop/while-count.sh)
- [while 读取文件并打印](./loop/while-read.sh)
- [找出最长字符串1](./loop/longest-word.sh)
- [找出最长字符串2](./loop/longest-word-for.sh)
- [找出最长字符串3](./loop/longest-word-string.sh)
## 分支
- [case 基本使用](./branch/case-model.sh)
- [case 菜单](./branch/case-menu.sh)
- [test 基本使用](./branch/test-file.sh)
- [test 判断文件类型](./branch/test-file.sh)
## 参数
- [获取参数](./parameter/posit-param.sh)
- [shift命令 获取所有参数](./parameter/posit-param-shift.sh)
- [$* 和 $@](./parameter/posit-param-special.sh)
## debug
- [全局追踪](./debug/debug.sh)
- [部分追踪](./debug/debug-partial.sh)
## 其他
- [让shell脚本可执行](./chmod.sh)
- [隐藏mac桌面](./hide-desktop.sh)
- [显示mac桌面](./show-desktop.sh)
- [英语数字听力练习](./say-number.sh)
- [打印系统信息](./sys-info-page.sh)