echo "Enter number:"
read num
r=0
d=0
a=$num
while [ $num -gt 10 ]
do
d=`echo $num % 10 |bc`
r=`echo $r \* 10 + $d |bc`
num=`echo $num / 10 |bc`
done
d=`echo $num % 10 |bc`
r=`echo $r \* 10 + $d |bc`
if [ $a -eq $r ]
then
echo "given number is polindrome"
else
echo "given number is not polindrome"
fi
k
no thanks
seq 1 2 99
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
dono
syntax error
in winxp del *.* /Q /S
The 'users' command should do that; you don't need to write a shell script to get that information in that format.
echo "Enter the Number" read n r=`expr $n % 2` if [ $r -eq 0 ] then echo "$n is Even number" else echo "$n is Odd number" fi
see : Write_a_shell_program_using_the_if-the-else_to_test_whether_a_variable_name_is_a_directory_or_a_file
tr [:lower:] [:upper:] < /etc/passwd > somefile
use python, shell is stupid