Search Results

Search: Posts Made By: BHASKARREDDY006
2,255
Posted By BHASKARREDDY006
function terminating if i give input as space or no input and enter
HI
i have written a script to ask input from the user.
this script should promote the user for y/n input. if user enters anyother input then y/n
the script promotes him again. this below code is...
2,406
Posted By BHASKARREDDY006
now that makes sense :) thanks a lot scott it...
now that makes sense :) thanks a lot scott it works thanks Scrutinizer
2,406
Posted By BHASKARREDDY006
As per your recommendatio i used while [ $num...
As per your recommendatio i used
while [ $num > $i ]

instead of using

while [[ `$num` > `$i` ]]

still facing the same problem

./hellow: line 13: [0: command not found
2,406
Posted By BHASKARREDDY006
no not a problem with the ` i do think the OS is...
no not a problem with the ` i do think the OS is unable to find the " while " program
Any idea whether iam missing some header file like that because i am new to the shell programming i am...
2,406
Posted By BHASKARREDDY006
Error with while loop
the program just prints all the command line arguments

Getting error in the program
error

./hellow: line 13: 0: command not found
./hellow: line 13: 0: command not found

below is the...
822
Posted By BHASKARREDDY006
Thanks it works :) :):cool::b:
Thanks it works :) :):cool::b:
822
Posted By BHASKARREDDY006
Getting error
this is the code i am using
#!/bin/ksh
c=1
while [[ $c -le 5 ]]; do
echo "Welcome $c times"
(( c++ ))
done


and the results are as follows

Welcome 1 times
./hi.sh[5]: c++ :...
Showing results 1 to 7 of 7

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