# 用戶輸入

## 在shell script中啟用『**用戶輸入』**

### 使用 **read ，vi inputName.sh**

```
#!/bin/bash
echo "Hi，Who are you?"
echo -n "Please input your name:"
#讀取使用者輸入
read name
echo "Hello, my name is $name."
```


---

# 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/yong-hu-shu-ru.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.
