Link Search Menu Expand Document

Compare

#! /bin/bash

echo "hello"

if [ "abcd" == "aBcd" ]; then 
    echo "This will not output, case sensitive!"
fi 

echo " moving on "

if [ "abcd" != "aBcd" ]; then 
    echo "not equal, case sensitive"
fi 

echo " end "

echo " PASSWORD EXAMPLE"

read -p "type the password? " password
if [ $password == "Test1234" ]; then 
    echo "correct, the file name is: hello world"
else 
    echo "incorrect password, exit programme"
    exit 
fi