bash linux scripting laguage 1

bash linux scripting laguage

#!/bin/bash

num_a=100
num_b=200

if [ $num_a -lt $num_b ]; then
    echo "$num_a is less than $num_b!"
fi

Here is what the above code is Doing:
1. We’re creating two variables, num_a and num_b, and assigning them values.
2. We’re using the if statement to check if num_a is less than num_b.
3. If num_a is less than num_b, then we print out a message.

Similar Posts