Monday, 6 May 2013

Shell Script Basic coding



 Enter the Name

echo "Enter The Name :"
read v_name
echo  $v_name

 Enter the name and Number
 

echo "Enter The Emp Name :"
echo "Enter The Emp Number:"
read v_name
read v_number
echo "Enter The Emp  Name"= $v_name
echo "Enter The Emp Number"= $v_number
  


Divide the value
echo "Enter the number :"
read v_num
echo "Enter the number1:"
read v_num1                               
v_sum=`expr $v_num /  $v_num1`
echo "Enter the number: " = $v_num
echo "Enter the number: " = $v_num1
echo "Sum of value: " = $v_sum

No comments:

Post a Comment