The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
how to compare all files in one unix box has been to copied to another unix box sravanreddym Shell Programming and Scripting 9 07-03-2008 11:43 AM
compare a variable against array elements fearboy Shell Programming and Scripting 2 06-27-2008 05:45 PM
compare variable against regular expression? finalight Shell Programming and Scripting 6 05-22-2008 06:20 AM
Compare between Unix and Windows msahoud71 UNIX for Dummies Questions & Answers 3 05-23-2007 06:26 AM
Compare the content of a variable with a string robdai UNIX for Dummies Questions & Answers 2 11-01-2005 07:29 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-08-2008
jaydeep_sadaria jaydeep_sadaria is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 34
compare two variable value in unix

dear all

i had two variable in my script.
var1 and var2

var1= 10 ( it will part of date op ) Fri Aug 8 10:05:09 IST 2008
var2=9 ( it will op of ls -ltr and time part of it.)

now i want to compare of them and want to do some task if both are are not same.

kindly let me know possible way...

rgd
jaydeep
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0