How to compaer


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to compaer
# 1  
Old 07-12-2005
How to compaer

HI all ,

I Have two variables with 2 value

a='software'
b='hardware'

i have to compare these values ..

how to do i dnt hav any idea..

I m a beginner .. pls help me out
# 2  
Old 07-12-2005
Code:
#! /bin/sh

a='software'
b='hardware'

if [ "$a" = "$b" ] ; then
echo " $a and $b are equal"
else
echo " $a and $b are not equal"
fi ;

Vino
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question