You can use read command in bash where input will be set into a bash variable. Read -p "What is your age" age in this example the user input value will be set into age.