An open API service indexing awesome lists of open source software.

https://github.com/daixinye/shell-playground


https://github.com/daixinye/shell-playground

Last synced: 3 months ago
JSON representation

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)