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
#這里默認(rèn)會(huì)換行  
echo "輸入網(wǎng)站名: "  
#讀取從鍵盤的輸入  
read website  
echo "你輸入的網(wǎng)站名是 $website"  
exit 0  #退出

The test result is:

Enter the website name: www.php.com

The website name you entered is www.php.com