nick34992
8/19/2017 - 8:43 PM

Bash: Compare Text

Bash: Compare Text

#!/bin/bash

echo "Enter text:"
read text1
echo "Enter more text:"
read text2

if test $text1 != $text2; then
  echo "they are not identical"
else
  echo "they are identical"
fi

exit 0