9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello, am not able to subtract timestamps in milliseconds.
I extract the timestamp as a string, and then try to subtract the two, but since it is a string, system just outputs 0
awk -F"," 'substr($1,0,13) - substr($2,0,013)' File
where $1 and $2 are the timestamps in the format... (4 Replies)
Discussion started by: sidnow
4 Replies
2. Post Here to Contact Site Administrators and Moderators
Write a script named time that displays the time in standard 12-hour format, rather than 24-hour format. Allow the user to give a -m option to get 24-hour format. For example:
> date
Sun Feb 10 10:56:50 CST 2008
> time
10:56 AM
> date
Sun Feb 10 21:57:07 CST 2008
> time
9:57 PM
>... (0 Replies)
Discussion started by: satish24
0 Replies
3. Shell Programming and Scripting
Hi All,
could any body let me know.
how to get timestamp with millisecond precision in unix bash shell.
example -->2005-12-06- 4-22-35-195
please help me.
Thanks,
Krupa:wall: (3 Replies)
Discussion started by: krupasindhu18
3 Replies
4. Shell Programming and Scripting
hey folks,
i am stuc in this problem. You all might help me out.
I want to write a BASH script to display time every 15 seconds using %r field descriptor. And want to clear the window each time before displaying time using clear command. Please help me out (3 Replies)
Discussion started by: manojrsb
3 Replies
5. Shell Programming and Scripting
Hi i've written a script which reads last two line of the log file from N number of servers and send the mail by redirecting to a particular log file.
And the two lines is displayed below.
Oracle Q03 Begin Hot BACKUP Time: 07/23/08 18:35:46
Oracle Q03 End Hot BACKUP Time: 07/24/08 14:18:15... (1 Reply)
Discussion started by: suri.tyson
1 Replies
6. Shell Programming and Scripting
i an trying to display current time in the expect script. it works fine in normal shell script but does not in expect. can anybody help me with the synatx to display it. (2 Replies)
Discussion started by: iamcool
2 Replies
7. Shell Programming and Scripting
Hi all,
may i know how to display time in minutes and seconds(may be milliseconds and even smaller that ) in shell scripts.... (1 Reply)
Discussion started by: santy
1 Replies
8. Shell Programming and Scripting
Hi,
I have a log file that has the date in this format "2006-05-30_13:14:04,256". I need to find the time difference between two log entries in milliseconds.
How to achieve this in AWK/GAWK script? :confused: (2 Replies)
Discussion started by: omprasad
2 Replies
9. Solaris
Hi Friends,
Can any one guide me regarding 'Display the date and time' command other than the command 'date'
thanks n regards
SsRrIi (1 Reply)
Discussion started by: SsRrIi
1 Replies