The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
display filename with date pstanand Shell Programming and Scripting 1 03-28-2008 08:35 AM
Force date display littlet05 Shell Programming and Scripting 5 08-02-2007 06:19 PM
DATE display Problem rinku Shell Programming and Scripting 2 05-30-2007 01:23 AM
display date n Time SsRrIi SUN Solaris 1 03-16-2006 05:48 AM
PHP:display by date perleo Shell Programming and Scripting 3 08-13-2003 02:29 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-01-2006
FrankC FrankC is offline
Registered User
  
 

Join Date: May 2006
Posts: 4
Date display

Hello,

Is there any easy way to write a script to display the date for the previous day? I have a script which queries a sybase database, and pull the data for certain time period. I'd like to know how you can get the day for previous day, something like: date - 1!

Thanks,

Frank
  #2 (permalink)  
Old 05-01-2006
Ambikesh Ambikesh is offline
Registered User
  
 

Join Date: Feb 2006
Location: California
Posts: 45
Check this thread..
Getting yesterday DATE
you will find many options..
  #3 (permalink)  
Old 05-01-2006
FrankC FrankC is offline
Registered User
  
 

Join Date: May 2006
Posts: 4
Ambikesh, thank you. You saved my day:

perl -e 'print localtime(time() - 86400) . "\n" '

The above Perl command did the job.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0