![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Yesterday in i.e. May 09 and 05/09 format | Daniel Gate | Shell Programming and Scripting | 3 | 05-20-2008 04:59 PM |
| get yesterday in yyyymmdd format | aaron_fong | Shell Programming and Scripting | 13 | 03-14-2008 03:14 PM |
| yesterday | Tlg13team | Shell Programming and Scripting | 0 | 02-27-2008 04:02 AM |
| How to show yesterday date | wind_n_cloud | Shell Programming and Scripting | 1 | 02-16-2005 10:51 PM |
| get yesterday date in yyyymmdd format | hk_newbie | UNIX for Dummies Questions & Answers | 2 | 12-14-2001 03:32 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||||
|
Perderabo wrote a cool date script that will do what you ask and more! Click Here To Get the Script. Use the date_calc script to calculate the date you need then pass it as a parameter to your script. Good Luck.
Last edited by google; 04-21-2004 at 10:18 PM.. |
|
||||
|
Re: Getting yesterday DATE
Quote:
I needed that functionality once too, I went about it by appending the current date to a file every day at 23:59 in cron... then refrencing that file whenever I needed to write a script to get things for yesterday... or last 5 days and so on and so forth. yesterdaysdate=`head -1 $datefile` past5days=`head -5 $datefile` |
|
||||
|
What does CST stands for?
Quote:
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|