![]() |
|
|
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 |
| "sed" to check file size & echo " " to destination file | jockey007 | Shell Programming and Scripting | 7 | 04-28-2009 03:08 AM |
| input string="3MMTQSZ348GGMZRQWMJM4SD6M";output string="3MMTQ-SZ348-GGMZR-QWMJM-4SD6 | pankajd | Shell Programming and Scripting | 4 | 04-14-2009 12:39 AM |
| Problem: Need to check if a string argument contains "-" | nehagupta2008 | UNIX for Dummies Questions & Answers | 7 | 06-20-2008 02:53 AM |
| catalina.sh : need combination from "start" and "run" | Filly | Shell Programming and Scripting | 1 | 02-08-2008 04:21 AM |
| check input = "empty" and "numeric" | geoffry | Shell Programming and Scripting | 6 | 12-13-2007 05:12 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How can I use if statement to check a string start with "abc"
I am trying to write a if statement in KSH that if a string is start with abc then print something, I have written some code as below but it doesn't work.
Could someone please help me if [[ ${name} = "abc*" ]] then print success fi Last edited by yhever; 09-29-2009 at 01:00 PM.. |
| Bookmarks |
| Tags |
| if statement; string start with |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|