9 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
I found via Google a way to show the date and time stamp once I log in. However, whenever I cd to another directory it doesn't display the correct path.
Here are the relevant parts from my .kshrc :
unset _h _m _s
eval $(date "+_h=%H ;_m=%M ;_s=%S")
((SECONDS =... (3 Replies)
Discussion started by: Mike F.
3 Replies
3. 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
4. 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
5. Shell Programming and Scripting
hi all,
am trying to 'grep' some text from a log file and use the 'cut' command to read from that line i just grep'ed to extract date/time and response times.
code sniplet i am using is :
grep -i 'text to grep' Out.log |
while read LINE;
do
... (11 Replies)
Discussion started by: cesarNZ
11 Replies
6. 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
7. 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
8. Shell Programming and Scripting
hi can some body please help me...i'm been sitting here trying to figure how to do this..but still don't understand. Like each type of *.src (if any) in the given directory will be displayed on the screen one page at a time....
can someone explain how to do this..plz (1 Reply)
Discussion started by: zip_zip
1 Replies
9. Programming
Hi All,
Urgent! Just a newbie needing advice.
Has anybody have a sample C script code in Unix to display time with milliseconds?
Most of the research I'm doing is up to the seconds format only.
Thanks!
Leidail (3 Replies)
Discussion started by: rezlez
3 Replies