Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if clauses bash

#!/bin/bash

echo -n "Enter a number: "
read VAR

if [[ $VAR -gt 10 ]]
then
  echo "The variable is greater than 10."
fi
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #clauses #bash
ADD COMMENT
Topic
Name
1+2 =