![]() |
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 |
| Adding a columnfrom a specifit line number to a specific line number | Ezy | Shell Programming and Scripting | 2 | 05-12-2008 08:29 AM |
| Help needed in converting number to bit | ahjiefreak | Shell Programming and Scripting | 5 | 03-30-2008 05:17 AM |
| Number count per number ranges | shirleyeow | Shell Programming and Scripting | 5 | 12-19-2007 04:06 AM |
| to print number one less than actual number | cdfd123 | Shell Programming and Scripting | 4 | 09-06-2007 06:56 AM |
| need help converting string to number for calculation | tpatput | Shell Programming and Scripting | 4 | 04-13-2007 10:40 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have written a script to compare the values of string (which actually are numbers) but it is not giving the expected output. Please suggest for the script.
Code:
#!/usr/bin/ksh sysdate=20071009 echo $sysdate currfile=20071008 echo $currfile if [ sysdate -eq currfile ]; then echo "Equal" else echo "Not Equal" fi Output ====== 20071009 20071008 Equal |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|