#!/bin/bash
echo "Please enter your name: "
read name
if [[ $name -eq n ]];
then
echo "Hi you are ok."
else
echo "Usage: $0 Only string. No integers."
fi
Myhost:/tmp ./if1.sh
Please enter your name:
8
Usage: ./if1.sh Only string. No integers.
Happy Scripting!
No comments:
Post a Comment