Search Results

Search: Posts Made By: Pratyush Sakhle
1,348
Posted By Pratyush Sakhle
none worked i am running the program by "sh...
none worked
i am running the program by "sh database.sh"
and its not working
but when i run like this

chmod u+x database.sh
./database.sh
it works fine :/
1,348
Posted By Pratyush Sakhle
Problem with for loop
i am having a problem with for loop here is the code


echo "Enter the number of records: "
read n
rm data.txt
echo "Name" "Roll no." "Marks 1" "Marks 2" "Marks" >> data.txt
...
1,222
Posted By Pratyush Sakhle
This worked thankyou very much :D
This worked thankyou very much :D
1,222
Posted By Pratyush Sakhle
cant figure out the error in this script (adding numbers in a string) using ubantu shell
hii please help me this is the script

num=$1
sum=0

while [$num -ne 0]
do
x=`expr $num % 10`
sum=`expr $sum + $x`
num=`expr $num / 10`

done

echo "Summation is $sum"

it is giving...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy