10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have written a code in Linux environment which compares two dates and print "correct" if 1st date is less than 2nd date. But when I'm running the same code in SunOS environment, "date -d is an illegal format" is the error it is throwing. How different should my code be so that it executes well in... (18 Replies)
Discussion started by: Chandan_Bose
2. Shell Programming and Scripting
i have another date problem
i need to find out the last week number and in that last week i need to find out at what day monday comes.
please help (5 Replies)
Discussion started by: aishsimplesweet
3. Shell Programming and Scripting
I need a function that verfies the given date is between start date and end date .
I have written this but this not working if start date is 1900/01/01
Below is my code
... (2 Replies)
Discussion started by: Satyak
4. Shell Programming and Scripting
I have a file a.txt
Start Date/Time End Date/Time from Prob_Dura.
----------------- ----------------- ----- ------
20090525 23:58:59 20090526 00:00:00 machine1 000051
20090525 23:58:09 20090526 00:00:11 machine2 000150
The perl or shell script can:
1. remove... (4 Replies)
Discussion started by: jimmy_y
I am using AIX 5.2 version
when ever i try to use
echo $(date -d yesterday +"%Y%m%d")
I am getting error as
date: not recognized flag d
please help me solve this.
I wanted to find the next date from a given date.
I tried using diff script but all of them failed at some... (5 Replies)
Discussion started by: sameerspice
6. Shell Programming and Scripting
i have a script that grep for today date
a=`date +"%F"`--------greps current/today date
wat if suppose i want to grep a date for yesterday...
how to do that using the above format: i,e 2008-01-20 (4 Replies)
Discussion started by: ali560045
7. Shell Programming and Scripting
i need the date should be older than 30 days
Please help me (1 Reply)
Discussion started by: readycpbala
8. Shell Programming and Scripting
Hi there I currently use a line in a script
This obviously returns the date in a format i have chosen. However, I need to come up with a solution for weekends and as such need a way of returning todays date minus two days in the same format (24/11/2004)
so for... (3 Replies)
Discussion started by: hcclnoodles
9. Shell Programming and Scripting
I have a problem with a shell. It runs every night just once a night on my sun system.
cd... (2 Replies)
Discussion started by: Peterh
10. UNIX for Dummies Questions & Answers
when you typed date it gives an output:
Fri Apr 12 10:07:59 MET DST 2002
how can i adjust this settings so it should read:
Fri Apr 12 10:07:59 GMT 2002
i've already search the forum but the answer was never completed.
by the way my UNIX is in solaris 7... ;)
thanks. (2 Replies)
Discussion started by: inquirer