# 简介

**关注作者公众号**： \
&#x20;![](/files/-MRfZZWty4bKGjJ7aqBQ) <br>

## Shell 编程范例

v 0.3

不同于传统 Shell 书籍，本书并未花大篇幅去介绍 Shell 语法，而是以面向“对象” 的方式引入大量的实例介绍 Shell 日常操作，“对象” 涵盖数值、逻辑值、字符串、文件、进程、文件系统等。这样有助于学以致用，并在用的过程中提高兴趣。也可以作为 Shell 编程索引，在需要的时候随时检索。

### 介绍

* 项目首页：<http://www.tinylab.org/open-shell-book>
* 代码仓库：<https://github.com/tinyclub/open-shell-book>
* 在线阅读：<http://tinylab.gitbooks.io/shellbook>

  更多背景和计划请参考：[前言](/shellbook/01-chapter1.md)。

#### 编译

要编译本书，请使用 [Markdown Lab](http://tinylab.org/markdown-lab)。

#### 纠错

欢迎大家指出不足，如有任何疑问，请邮件联系 wuzhangjin at gmail dot com 或者直接修复并提交 Pull Request。

#### 版权

本书采用 ![CC BY NC ND 4.0](http://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png) 协议发布，详细版权信息请参考 [CC BY NC ND 4.0](http://creativecommons.org/licenses/by-nc-nd/4.0/)。

#### 联系作者

![](/files/-MRfZZk2wXrVfhqnNZEQ)

#### 赞助作者

![](/files/-MRfZZk3VxdSlTytTQTR)

#### 更多原创开源书籍

* [C 语言编程透视](http://tinylab.gitbooks.io/cbook/)
* [嵌入式 Linux 知识库(eLinux.org 中文版)](http://tinylab.gitbooks.io/elinux/)
* [Linux 内核文档(Linux Documentation/ 中文版)](http://tinylab.gitbooks.io/linux-doc/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tinylab-1.gitbook.io/shellbook/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
