The follwing code is for to compare two strings or variables. But, I cannot do it. I did a lot of googling, but no use. Here, output doesn't depend upon the changing of inputs. Can any one correct this code ??
#!/bin/sh echo "Enter your username1:" read username1 echo "Enter your username2:" read useraname2 if [ "$username1"=="$username2" ] then echo 'Same' else echo 'Different' fi