10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below.
Could you please help out to achieve solution through shell script..
... (2 Replies)
Discussion started by: nani2019
2. Shell Programming and Scripting
I am looking for a Perl module or a program logic that gives the startdate and enddate of the last week..
Suppose say, assuming this week starts from Sunday to Saturday
If I execute the script in this week. I need to get the last week sunday's date.
Could anyone please... (1 Reply)
Discussion started by: scriptscript
3. Shell Programming and Scripting
I have to increase the date by one week in an input when script is executed in solaris. I was able to acheive this using ksh script that is working in Linux enivironment, when i execute the same script in Solaris i am getting below error:
date: illegal option -- d... (3 Replies)
Discussion started by: sriramanaramoju
I have a weird requirement where I have to get the files from a FTP(Lets say FTP1) location and place it on my current FTP(Lets say FTP2) location. The issue is, these are daily files (in a pattern Sales_YYYYMMDD_report.csv) and are placed every day on FTP1 and my process usually runs on Monday(eg.... (2 Replies)
Discussion started by: dhruuv369
5. Shell Programming and Scripting
I have a directory of backup files.
named like this:
ldap.data.27-05-2012.tar... (6 Replies)
Discussion started by: robsonde
6. Shell Programming and Scripting
First of all, I would like to say this is my first post in the unix.com forums. I am a beginner in PERL and have only started writing my first scripts.
With that out of the way, I have a question regarding the calculation of time dates in PERL.
I have two scalar variables with the... (1 Reply)
Discussion started by: DiRNiS
7. Shell Programming and Scripting
Is there any way I can get the difference between two dates in terms of days?
I have used this method so far, but I cant format it in terms of days.
The o/p that I am getting is sort of like this:
I just want to get 4 days as an o/p.... (1 Reply)
Discussion started by: King Nothing
8. Shell Programming and Scripting
I am looking for a script or method that can display all the dates between any 2 given dates.
Please help me. Thanks. :):confused: (2 Replies)
Discussion started by: frozensmilz
9. UNIX for Dummies Questions & Answers
How to find the Day of the Week of the given Date using perl?
If I have a date in YYY--MM-DD format, how to find the DOW? Based on that, I need to find the following sunday.
Pls help. (5 Replies)
Discussion started by: deepakwins
10. Shell Programming and Scripting
I need to create 12 variables, the first of which is the date of the first day of the current month (01/01/2006), and the remaining 11 are to equal each month after the current.
var1 = 01/01/2006
var2 = 02/01/2006
var3 = 03/01/2006
var4 = 04/01/2006
How can I easily do this is in... (7 Replies)
Discussion started by: ssmiths001