Answers for "how to check string is equal or not in bash"

C#
1

check strings is equal shell

#!/bin/bash

VAR1="Linuxize"
VAR2="Linuxize"

if [ "$VAR1" = "$VAR2" ]; then
    echo "Strings are equal."
else
    echo "Strings are not equal."
fi
Posted by: Guest on June-08-2021

Code answers related to "how to check string is equal or not in bash"

C# Answers by Framework

Browse Popular Code Answers by Language