# 註釋多行

寫shell腳本時，經常需要註釋多行，但在每一行前輸入#有些麻煩。基於shell命令的靈活性，我們可以使用下面的方法。

### 採用HERE DOCUMENT特性

```
#!/bin/bash

echo "Hello"

<<COMMENT
註釋行1
註釋行2
...
註釋行n
COMMENT
```

### 採用：冒號:可用於多行註釋。

```
#!/bin/bash

echo "Hello"

: ' # : + 空格 + 單引號
註釋行1
註釋行2
...
註釋行n
'
```


---

# 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://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled-4/shell-script/untitled.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.
