![]() |
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 |
| Shell script that would check if the CD-rom is readable | eamani_sun | Shell Programming and Scripting | 1 | 05-13-2008 06:54 PM |
| script check the users in SHELL ? | anything | Shell Programming and Scripting | 3 | 02-01-2008 11:38 AM |
| Check EOF in shell script | ideazhcy | Shell Programming and Scripting | 8 | 07-20-2007 03:29 PM |
| check in unix shell script so that no one is able to run the script manually | adi_bang76 | Shell Programming and Scripting | 1 | 11-16-2006 10:43 AM |
| Special Character Check in Shell script | mradul_kaushik | Shell Programming and Scripting | 1 | 03-24-2006 05:54 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
check my first shell script
I have written the below script to determine whether a string is palindrome or not ?
But its not working, any help to debug it ? I am new to this forum but when I searched for my question, I found that many people refused to answer this question thinking that its Homework question, Therefore I want to make it clear that its not a Homework , I am learning shell scripting on my own. If you can still help me, thank you much. -------------------------------------- #!/bin/sh var="mom" var1=`echo $var|rev` if [$var -eq $var1];then echo "$var is palindrom" else echo "$var is not palindrom" fi |
|
||||
|
Sorry, will take care from next time.
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|