# Bash Scripting Programs

1&gt;*$* nano [First.sh](http://First.sh)

Add the following bash script to the file and save the file.

#!/bin/bash  
echo "Hello World"

$ chmod a+x [First.sh](http://First.sh)  
$ ./[First.sh](http://First.sh)

o/p -&gt; Hello World

2&gt; **How to read user input**

In bash, we can take user input using the `read` command.

```plaintext
read variable_name
```

To prompt the user with a custom message, use the `-p` flag.

`read -p "Enter your age" variable_name`

**Example:**

```bash
#!/bin/bash

echo "Enter a numner"
read a

echo "Enter a numner"
read b

var=$((a+b))
echo $var
```
