Your Only Destination To Empower Your Computer Programing Knowledge. Sky is not so high, You can Touch it if You Try

Script to show use of if control structure

echo Enter two files
read a b
echo
echo contents of first file:-
cat $a
echo
echo contents of second file:-
cat $b
if(($a==$b))
then
echo contents are same

fi
~
~
~
~
~
~
~
~
~
~
"oif" 13L, 197C




Output:-



Enter two files
pa radhe

contents of first file:-
jiska koi nhi uska khuda hai yaro

contents of second file:-
jiska koi nhi uska khuda hai yaro

contents are same

No comments:

Post a Comment