10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
16:45:51 10051 77845
16:45:51 10051 77845
16:46:52 10051 77846
16:46:53 10051 77846
Match the last PID then subtract second line time with first line.
Please help me with any command or script.
working in media company on a project OS: RHEl7
tried command:
awk 'function... (2 Replies)
Discussion started by: vivekn
2 Replies
2. Shell Programming and Scripting
Hi All,
I have the following time stamp data in 2 columns
Date TimeStamp(also with milliseconds)
05/23/2012 08:30:11.250
05/23/2012 08:30:15.500
05/23/2012 08:31.15.500
.
.
etc
From this data I need the following output.
0.00( row1-row1 in seconds)
04.25( row2-row1 in... (5 Replies)
Discussion started by: ks_reddy
5 Replies
3. Shell Programming and Scripting
I have 2 variables
MTIME="Jan_2_2012_23:55:49"
SCH_TIME="Jan_03_2012_00:32:28"
I want to find the time taken (in seconds) between MTIME and SCH_TIME.
Is there any way by which this can be done in Unix Shell Script? (4 Replies)
Discussion started by: ankitncr
4 Replies
4. Shell Programming and Scripting
Hi,
START_TIME :- "10-NOV-2009 00:00:04"
STOP_TIME :- "10-NOV-2009 00:05:47"
Please help to find difference between these two.
Searched for the same topic but did not find an answer for the same time format :(
Regards,
Robin (3 Replies)
Discussion started by: robinbannis
3 Replies
5. Shell Programming and Scripting
Hello!
i need to find files lower and bigger that one date i pass, i search in the man find, but i didn't find anything, the only that i find is the parameter -mtime, in this parameter i can pass a number of days, but i need to know the difference between dates, any built-in function for do... (15 Replies)
Discussion started by: claw82
15 Replies
6. Shell Programming and Scripting
is there any ways to get the time difference between 2 dates in UNIX?
for example, For below date the outut should come 22 minutes
startdate enddate
========= =======
06/17/2008 13:25 06/17/2008 13:47
For, below date, the output should come 1462 minutes
... (5 Replies)
Discussion started by: Amit.Sagpariya
5 Replies
7. Shell Programming and Scripting
Hi,
I have a file with the contents as following
Access Time: Thu Nov 6 16:43:45 2008
Modify Time: Thu Nov 6 16:43:45 2008
Change Time: Thu Nov 6 16:43:45 2008
Access Time: Thu Nov 6 16:43:02 2008
Modify Time: Thu Nov 6 16:44:01 2008
Change Time: Thu Nov 6 16:44:01 2008
I need... (3 Replies)
Discussion started by: meetmano143
3 Replies
8. Shell Programming and Scripting
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... (6 Replies)
Discussion started by: SanjayPasum
6 Replies
9. Shell Programming and Scripting
Hi,
I has created the shell script in HP_UX 11.23 and using the command, echo $(date +%Y%m%d%H%M%S) > $DIR/alert, placing the time of running the script into a file alert.
I want to compare the time in the above file alert with the current time.If difference is more than 5 min, then print the... (7 Replies)
Discussion started by: velocitnitin
7 Replies
10. Shell Programming and Scripting
HI ,
I need to get the timedifference between two values... which funcation will help
eg: difference betweem 19:22 and 19:43 should give 21 mins (2 Replies)
Discussion started by: savitha
2 Replies