Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: strasner
2,087
Posted By strasner
in line 7 i do this 7)eval xnum$rdm=$in1 what i...
in line 7 i do this 7)eval xnum$rdm=$in1
what i want that to do is create a variable xnum1 for the first time the loop hapens, then the second time xnum2.
2,087
Posted By strasner
the number of times it loops wont really affect...
the number of times it loops wont really affect the outcome that i am getting, which now i have realised i forgot to put into the first post.

when i echo out what is in the xnum variables i get a...
2,087
Posted By strasner
how would i go about doing that then? if a...
how would i go about doing that then?

if a word is stored in the variable 'word'?
2,087
Posted By strasner
problems calling out variables in a loop
good afternoon forums.
i have a problem that ive been trying to work out all morning and cant seem to get my head around it.
what i have in my script is individual letters saved in different...
2,817
Posted By strasner
thanks for this solution, however i cant use sed...
thanks for this solution, however i cant use sed for this. pure bash solutions if possible...
2,817
Posted By strasner
mornign forums again. Yes i am doing some...
mornign forums again.

Yes i am doing some coursework, but im trying to follow the rules as much as i can.

i am currently trying to replace a particular character inside a saved variable with an...
3,619
Posted By strasner
checking wether an input is using letters of the alphabet
afternoon forums.

I need to get a way of testing as to wether an inputed character is part of the english alphabet.

i have come up with the following code but its not working at all.
...
2,817
Posted By strasner
check if a character is inside a variable
Good morning forums.

Ive been trying all weekend to do this with no luck, so i have come to the forums for help.

What i want to do is check if an inputed character is inside a variable.
...
5,070
Posted By strasner
awesome, that works. thanks alot
awesome, that works.

thanks alot
5,070
Posted By strasner
the field seperator is a space (using bash btw)
the field seperator is a space
(using bash btw)
5,070
Posted By strasner
count number of fields not using SED or AWK
hi forums

i need help with a little problem i am having.

i need to count the number of fields that are in a saved variable so i can use that number to make a different function work...
1,620
Posted By strasner
Cut from inside a saved variable
ok, heres my problem.

i have saved the last line from a ls -l command into a variable. What i want to do is be able to cut the second character into that (i.e. the r if its there of the - if its...
2,214
Posted By strasner
where would i put the -n in that code to make it...
where would i put the -n in that code to make it work?
2,214
Posted By strasner
display whats in an array side by side
ok, so ive got some values that are inputed by a user and are stored in an array. Now what i want to do is change this piece of code below to show ina different way.

}
for (( num=0; num<9; num++...
1,512
Posted By strasner
thanks alot, youve saved my morning
thanks alot, youve saved my morning
1,512
Posted By strasner
until statement not working
im trying to write an until statement which dont go onto the next stage until the user inputs a certain phrase. It is then stored in an array. Ive come up with this code so far but its not working...
Showing results 1 to 16 of 16

 

Featured Tech Videos

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