Tyleo-Dev-ShellScripting-Ol.../SH/variablegame.sh

20 lines
448 B
Bash
Raw Normal View History

2024-02-18 21:29:57 +00:00
#!/bin/sh
# Registering variables
VARIABLE0001=1
VARIABLE0002=2
VARIABLE0003=3
VARIABLE0004=4
VARIABLE0005=5
OUTOFRANGE=`echo "Out Of Range !"`
# ---------------------
# We will use variables for creating computing :
echo "$VARIABLE0001 + $VARIABLE0001 = $VARIABLE0002"
echo "$VARIABLE0002 + $VARIABLE0002 = $VARIABLE0004"
echo "$VARIABLE0004 + $VARIABLE0004 = $OUTOFRANGE"
echo "$VARIABLE0005 = $VARIABLE0005 after that, is $OUTOFRANGE"
# End