It's pretty simple, in bash at least: $ export A=C B=d $ if [[ $A < $B ]]; then echo $A is less than $B; fi C is less than d
if you want to input them from the keyboard you can use 'read' and probably a whole lot of other ways too :) On 12/13/06, 5h4rk <[EMAIL PROTECTED]> wrote:
Hi, I'm trying to create a script that compare 2 or more characters, to find out the largest or the lowest one, for example, I enter each letter one by one, like a, b, c, d, e, so the lowest one is a and the largest one is e. How can I do that? Thanks ^^ -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html