answersLogoWhite

0

Something like this, using perl:

perl -e "if (lc("$str1") ge lc("$str2")) { exit 1 } else { exit 2 }"

This will return 1 if $str1 is greater or equal $str2, 2 otherwise. You can then check the value in $?.

User Avatar

Wiki User

∙ 18y ago
User Avatar

What else can I help you with?

Related Questions

Whynot you use any onther programming except shell programming?

Shell programming can get you only so far; after that you need to use another programming language (possibly even another scripting language) to get the job done. Shell programming is designed to work with the system interface and to help automate tasks; it isn't good for everything.


What is the difference between the Linux shell and C?

C is a programming language. A shell is an interface.


Why are there white strings attached to egg yolks?

Chalazae (white strings) are there to anchor the yolk in the centre of the egg shell.


What are the types of shells in shell programming?

The Bourne shell (sh) ,The C shell (csh) ,The Korn shell (ksh) ,The Z-Shell (zsh) ,The POSIX shell,The Bourne Again SHell (Bash)null


What is the importance of Linux shell?

Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.


Sum of n numbers in shell programming?

2 4 6


Difference between c and shell programming execution?

Can you please explain your question?


What is the difference between a shell and a subshell in the context of computer programming?

In computer programming, a shell is a program that provides a user interface for accessing the operating system's services. A subshell is a separate instance of the shell program that can run within the main shell. Subshells allow for the execution of multiple commands simultaneously and can be used to manage complex tasks efficiently.


Why is Unix useful in shell programming?

There are several shell programs for Unix, not just one. That in itself is an advantage. The shell environment can be customized, scripted (programmed), and extended very easily. If you don't like the way it is doing something it is fairly easy to change the behavior.


Shell sript programming Has a bit of a bad press?

Maybe, but don't worry to much about that.


How do you modify skin of SPD shell v3.88 for s60 v5?

To modify the skin of the SPD shell v3.88 for s60 v5 you need to have some programming skills.


What can i do with the shell of an upright piano that doesn't work anymore?

Take out "guts" the sound board (strings) and the keys and install a digital keyboard in its place and still keep the shell of the original piano