Skip to content

contoh operator if pada shell programming 2

July 7, 2007

#!/bin/bash
clear
read -p “masukkan nama anda = ” nm
read -s -p “masukkan password anda = ” pass
if [ $nm = “fadhil” ] && [ $pass = “fadhil” ];
then
echo -e “\nAssalamu’alaikum fadhil”;
else

echo “Elo siape ???”
fi

From → Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: