take int input from user in shell script code example
Example: how to read from keyboard in bash and store in a variable
#!/bin/bash
read -p "Enter your name : " name
echo "Hi, $name. Let us be friends!"
#!/bin/bash
read -p "Enter your name : " name
echo "Hi, $name. Let us be friends!"