jeudi 29 mars 2018

if in shell scripting not giving actual response [duplicate]

This question already has an answer here:

#!/bin/sh
read name
if test "$name"=akash
then 
echo "Hello how are you"
else
echo "sorry"

This is my script but at both case I am getting "Hello how are you" response

Aucun commentaire:

Enregistrer un commentaire