Linux提醒用户输入并获取输入信息

Linux提示用户输入并获取输入信息#!/bin/bash#testing the read commandecho -n enter your key: read k

Linux提示用户输入并获取输入信息

#!/bin/bash#testing the read commandecho -n "enter your key: "read keyecho "hello $key ,welcome to my program."