read
UK[ri:d] US[ri:d]
vt.& vi. Read, read aloud; display; research; understand
vt.Read; show; read, understand
n.Read; read; read; Reed (name)
adj. To be read aloud; to be knowledgeable; Well-read; knowledgeable
Third person singular: reads Present participle: reading Past tense: read Past participle: read
Linux read command syntax
Function: read command is used to read values from standard input.
Syntax: read [-ers] [-a aname] [-d delim] [-i text] [-n nchars] [-N nchars] [-p prompt] [ -t timeout] [-u fd] [name ...]
Linux read command example
#!/bin/bash #这里默认会换行 echo "输入网站名: " #读取从键盘的输入 read website echo "你输入的网站名是 $website" exit 0 #退出
The test result is:
Enter the website name: www.php.com
The website name you entered is www.php.com