ref:http://bash.cyberciti.biz/guide/Getting_User_Input_Via_Keyboard You can accept input from the keyboard and assign an input value to a user defined shell variable using read command. Contents 1 read Command Syntax 1.1 Handling Input 1.2 Examples 1