Search Results

Search: Posts Made By: Ren_kun
2,256
Posted By Ren_kun
Boolean expressions for If's
1. The problem statement, all variables and given/known data:
Im experimenting with if expressions for an assignment. What i want to do is check if an input of read x y z will be checked against x...
6,060
Posted By Ren_kun
Im going to start from scratch but this time try...
Im going to start from scratch but this time try a case method. If i cant do it again ill get your help =].
6,060
Posted By Ren_kun
Okay thanks for your help thus far. Ill sleep...
Okay thanks for your help thus far. Ill sleep over it and see if i can make changes. Possibly ill start again and use case instead. Ill be on tomorrow.

---------- Post updated at 04:00 PM...
6,060
Posted By Ren_kun
sorry i fail to see where you used your...
sorry i fail to see where you used your parenthesis to make a comparison.

EDIT: If i think you did what i think you did then i probably did do it. If you check out the new code i made.

"3")...
6,060
Posted By Ren_kun
so can i have something like this? if [[...
so can i have something like this?

if [[ "$letter" < Z || "$letter" == Z && "$letter" > A || "$letter" == A ]]; then

EDIT:

"3")
clear
echo Enter capitol alphabetical letters one at a time...
6,060
Posted By Ren_kun
dear yazu et al, I was no aware i could take...
dear yazu et al,

I was no aware i could take out backslashes in double bracket instances thats amazing, and treating numbers as strings is something i thought was ok only in java hahahah. Thanks a...
6,060
Posted By Ren_kun
needs to be in bash i believe. Im not to sure as...
needs to be in bash i believe. Im not to sure as our lecturer or tutor hasnt specified this POSIX term. And in the lecture slide > and < can be used to compare string values apparently.

this is...
6,060
Posted By Ren_kun
Now i get the error ./Assignment4.SH: line 49:...
Now i get the error ./Assignment4.SH: line 49: syntax error in conditional expression
./Assignment4.SH: line 49: syntax error near `]'
./Assignment4.SH: line 49: ` while [[ $letter == "Z" ] || [...
6,060
Posted By Ren_kun
cygwin is a unix environment that mimics bash in...
cygwin is a unix environment that mimics bash in windows and various other stuff for unix.
6,060
Posted By Ren_kun
umm its bash? or is it called bourne...
umm its bash? or is it called bourne...
6,060
Posted By Ren_kun
But in the lecture my lecturer did something like...
But in the lecture my lecturer did something like that.

I quote from the lecture slide " •if [ $input \> “z” –o $input \< “a” ] – If the value of input is not in the range between “a” and “z”
...
6,060
Posted By Ren_kun
so i must use ascii values to compare the sizes?...
so i must use ascii values to compare the sizes? cant i do what i did in the edited post and ask if A<B etc etc?
6,060
Posted By Ren_kun
Alphabetical help.
1. The problem statement, all variables and given/known data:
Find the first letter in alphabet from the input:

Accept the input of a series of upper case alphabetic letters one at a time....
2,972
Posted By Ren_kun
Thanks for the prompt reply. But could you tell...
Thanks for the prompt reply. But could you tell me what you mean by saying i was testing the same thing 3 times ><? Just wanna learn more.
2,972
Posted By Ren_kun
Help with infinite loop problem
1. The problem statement, all variables and given/known data:
My problem is an infinite loop when i press any other key other then Y or y in the while loop. what i want it to do is return to the...
14,147
Posted By Ren_kun
On testing there seems to be no more errors....
On testing there seems to be no more errors. Thanks for your help thus far zaxxon. Ill do the indentation properly now too. If i come across anymore errors i cant figure out straight away ill post...
14,147
Posted By Ren_kun
#! /bin/sh choice=0 while [ $choice -ne 4 ];...
#! /bin/sh
choice=0
while [ $choice -ne 4 ]; do
clear
echo " Menu"
echo "1.Username|Directory|Shell|Calender"
echo "2.Arithmetic Operation"
echo "3.Find the first letter"
echo...
14,147
Posted By Ren_kun
Sorry zaxxon but could you lead me somewhere or...
Sorry zaxxon but could you lead me somewhere or tell me how specifically? I wasnt aware i could copy and paste in an unix environment.
14,147
Posted By Ren_kun
Syntax error near unexpected token 'else'
1. The problem statement, all variables and given/known data:

line 37: syntax error near unexpected token 'else'
line 37: ' else'

the script is made to take 1 or 2 command line arguments...
Showing results 1 to 19 of 19

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