#!/bin/bash
x=10
y=20
echo "Value x=$x y=$y"
if [ $x -eq $y ] ; then
echo -e " x and y are same value "
elif [ $x -gt $y ] ; then
echo -e " x is greater than y "
else
echo -e " x is less than y"
fi
str1="Chidam"
str2="Chidam"
echo "Value str1=$str1 str=$str2"
if [ "$str1" = "$str2" ] ; then
echo -e " str1 and str2 are same value "
else
echo -e " str1 and str2 are not same value "
fi
OUTPUT :
-bash-3.2$ sh if_elif_ex
Value x=10 y=20
x is less than y
Value str1=Chidam str=Chidam
str1 and str2 are same value
A Language is not worth knowing unless it teaches you to think differently.
Subscribe to:
Post Comments (Atom)
Customer Tax Registration - EBS Query
SELECT DISTINCT hp.party_type, hp.party_name, hca.account_name, hp.party_number, hps.party_site_number, ...
-
1. To download Ldt file for a Concurent Program FNDLOAD [username]/[password] O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_nam...
-
The profile information available in the HZ_CUSTOMER_PROFILES can be created in three levels namely Party, Customer Account and Customer...
-
Here the article will describe about how to register WebADI to Responsibility menu Go to System Administrator --> Security --> Respo...
No comments:
Post a Comment