Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if statement bash

#!/bin/bash
# Basic if statement
if [ $1 -gt 100 ]
then
echo Hey that's a large number.
pwd
fi
Source by devconnected.com #
 
PREVIOUS NEXT
Tagged: #statement #bash
ADD COMMENT
Topic
Name
8+1 =