ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi,
Im looking for a way to get variables out of a string..
There are a few forms that the string can be inputed by the user- thats the problem.
i need to seperate the string into 3 vars.. ($first $sign $second)
a few examples:
ok, you get the idea.. the first(left) part of the string will always be a word. The middle(sign) can only be: < , > , = .
and the third(right) part can be a number or a word, as described at the example. if the third part is a word it will do a string compare.
I need to execute an IF statement out of the string i get.
so im trying to first store each part of the string so i can know whats going on before writing the statement.
Thanks a lot for the helpers- any idea will B welcome!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.