Shell

How do you get input from the user in shell scripts?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Using the keyword read so for example read x will wait for user input and will store it in the variable x.