![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| string comparison | Jatsui | Shell Programming and Scripting | 5 | 02-04-2008 04:28 PM |
| Problem in ksh script ( String comparison ) | amarnath | AIX | 1 | 07-18-2006 07:40 AM |
| Problem in ksh script ( String comparison ) | amarnath | Shell Programming and Scripting | 3 | 07-13-2006 01:14 PM |
| String Comparison | abey | High Level Programming | 1 | 10-19-2005 01:08 PM |
| Unix Programming Book Comparison | theicarusagenda | High Level Programming | 6 | 03-04-2005 10:30 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
problem in string comparison in shell programming
Hello,
was just wondering how to compare strings in unix? I mean as in C there is a function strcmp() in string.h, is there any function in unix for that? I tried using Code:
if [ "p" > "q" ] ![]() |
|
||||
|
I dont think you can compare strings with -le -gt -ge. It's meant for only integer comparison.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|