![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [sh] String comparison operators | userix | Shell Programming and Scripting | 1 | 05-16-2008 01:09 AM |
| string comparison | Jatsui | Shell Programming and Scripting | 5 | 02-04-2008 12:28 PM |
| String Comparison between two files using awk | rudoraj | Shell Programming and Scripting | 7 | 07-25-2006 08:04 AM |
| string comparison operators, what are they?? | ballazrus | Shell Programming and Scripting | 11 | 02-13-2006 03:30 AM |
| String Comparison | abey | High Level Programming | 1 | 10-19-2005 09:08 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
string comparison
The script will read a bunch of names, and test if it contains "John", but as below apparently ~ does not work, so what is the easiest way to perform string comparison in bash shell script? thanks
... elif [ $name~"John"`"] then echo "get John" .... |
| Forum Sponsor | ||
|
|