Answers for "shell not equal string"

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

C# Answers by Framework

Browse Popular Code Answers by Language