![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| conditional | u263066 | UNIX for Dummies Questions & Answers | 2 | 09-25-2008 03:00 AM |
| Awk Conditional | icy_blu_blu | Shell Programming and Scripting | 3 | 07-18-2008 02:34 AM |
| Conditional FTP | Dastard | Shell Programming and Scripting | 2 | 06-21-2008 08:38 AM |
| conditional ftp | dr46014 | UNIX for Dummies Questions & Answers | 3 | 06-20-2008 12:00 PM |
| AWK - conditional cause | Rafael.Buria | Shell Programming and Scripting | 2 | 01-28-2008 01:24 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
If conditional
Hi,
I am new to unix and shell scripting.In my script,there is a line using the "if" conditional - if [$x != "," ] && [$x != ","]; then do something Here "x" is a variable holding string value.If it is not equal to a comma or a string,only then I want to enter the "if" loop. But I am getting error while running this. The error says - " != Expecting unary operator" . Please let me know what is wrong and how to correct it. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|