The UNIX and Linux Forums  

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 calculate this time difference Prat007 Shell Programming and Scripting 2 08-03-2008 10:35 AM
Time difference Segwar Shell Programming and Scripting 4 07-22-2008 12:48 AM
Finding the time difference padma.raajesh Shell Programming and Scripting 0 02-28-2008 12:12 AM
NTP - with time difference shauche AIX 0 07-02-2007 02:21 AM
time difference decci_7 UNIX for Advanced & Expert Users 3 10-09-2006 04:57 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 Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-16-2008
SanjayPasum SanjayPasum is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 4
Time Difference between two files in two different directories

Hi,

Can anyone please help me.
How to write shell script for taking time difference between two files which are in two different folders.

Example:

Folder1 is having sample_1_*.txt with the time 13:10 hours
Folder2 is having sample_1_*.txt with the time 13:17 hours

Now i need the time difference between many files like this by running a shell script. I need the output as below

Folder1 Folder2 Time Diff
sample_1_ sample_2_ 7 Seconds

This script is very urgent for me. Anyone's help is honestly appreciated.



Regards,
Sanjay...
 

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 09:02 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