> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled-4/shell-script/yong-hu-shu-ru.md).

# 用戶輸入

## 在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."
```
