Summary: Hi, I'm new in writing unix scripts. Currently I need to write a script to calculate previous date. Lucky this web site has infomation on it. I have f...
Summary: All, I have a requirement to assign yesterday's date in to a var. This should be compatible with all the months from Jan to Dec. Appreciate your help ...
Summary: I have to calculate the date - 1. I use this shell: #!/bin/sh DataFlusso='date +"%Y%m%d"' DataFlusso='expr $DataFlusso - 1' but if the date is 2004050...
Summary: I want the script to calculate a date in the past, say 7 days, and then delete certain files based on that date. My problem is that I don't know how ...
Summary: oh oh oh its very hard to work with dates under unix, because there is no spezify tool for it! my solution is, that "we" have a oracle server installe...
Summary: oh oh oh its very hard to work with dates under unix, because there is no spezify tool for it! my solution is, that "we" have a oracle server installe...
Summary: @echo off ------------------------- :: Description: Deletes files older than a specified number of days :: ++ attributes not set :: :: Author...
Summary: I'm trying to calculate the date 14 days into the future with the date function. Searching in this site I found something in a past post that subtrac...
Summary: If you want to use a Perl script, there is a module on CPAN which would make it very easy to calculate fiscal dates. http://search.cpan.org/~jshy/Date...
Summary: Hi, I am trying to delete log files older than a certain date using a Korn shell script. The best suggestion I've found (on this board) is to calculat...
Summary: Calculation of ISO week turns out to be somewhat involved, but still I managed to calculate it with just a single call to cal to establish how January...
Summary: Hello All, Need Help!!! I want to create a unix script, which will calculate a particular date for every Quarter. Any help on this will be appreciated...
Summary: I'm trying to rename a file from gjoob.txt to gjoob_monday.txt depending on the day of the week. I can get the current day of the month by typing `dat...
Summary: I need to write a script to get the start date and end date of the previous week. Say it is monday the 28th, I need the system to give me 10/21/2002 a...
Summary: One approach is to analyze the date-time from an ls -l. I would pipe it into awk for analysis. But it's a pain to compute 20 minutes back because yo...
Summary: Hi Dave I have 1 problem with the script If I have more than 2 lines for the date I get an error - I need to calculate the 1st & last. eg: 21:20:46 10...
Summary: I ran across a neat solution a while back (posted by "mib") that computed yesterday's date. Here is my version, based on that logic, which goes back ...
Summary: First off, you are going to have to split your date ranges into something like: YYYY MM DD YYYY MM DD This will avoid awk'ing the 2 input parameters t...
Summary: William Robertson has done some fine work with date calculation he chose to share with us here. http://www.williamrobertson.pwp.blueyonder.co.uk/code/...
Summary: #!/bin/ksh # At script beginning, get day of month. BDAY=$(date +%e) # Get time in seconds. ((BTIME=($(date +%H)*3600)+($(date +%M)*60)+$(date +%S))) ...
Summary: I have converted a given date to julian date, done some calculations (add, subtract,etc)and have converted the result back to gregorian date - but I c...
Summary: I need some help with a script that will do the following: 1. Does a grep for a particular word in a file. 2. If the word exists, then it checks the i...
Summary: I am trying to subtract 35 days from the current date.. Whatever that date is, needs to be appended to my output filename. The following will subtract...
Summary: I got the Back-tic now is there any way I can use the first date statement and do a -1 to use the previous month ie xref.`date '+%Y%m'`.zip5.s will r...