<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shell Script - Yesterday's date in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621462#M925995</link>
    <description>TZ=GMT+34 date&lt;BR /&gt;&lt;BR /&gt;You will have to play with the time offset to match your particular timezone.</description>
    <pubDate>Wed, 28 Nov 2001 19:01:37 GMT</pubDate>
    <dc:creator>Alan Riggs</dc:creator>
    <dc:date>2001-11-28T19:01:37Z</dc:date>
    <item>
      <title>Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621461#M925994</link>
      <description>Could someone please share with me the easiest way to find out yesterday's date (today-1)in a shell script?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tracey</description>
      <pubDate>Wed, 28 Nov 2001 16:33:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621461#M925994</guid>
      <dc:creator>Tracey</dc:creator>
      <dc:date>2001-11-28T16:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621462#M925995</link>
      <description>TZ=GMT+34 date&lt;BR /&gt;&lt;BR /&gt;You will have to play with the time offset to match your particular timezone.</description>
      <pubDate>Wed, 28 Nov 2001 19:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621462#M925995</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2001-11-28T19:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621463#M925996</link>
      <description>Follow this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x6901c7af36b7d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x6901c7af36b7d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 28 Nov 2001 19:01:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621463#M925996</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-28T19:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621464#M925997</link>
      <description>oops:&lt;BR /&gt;&lt;BR /&gt;typo  34 should be 23</description>
      <pubDate>Wed, 28 Nov 2001 19:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621464#M925997</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2001-11-28T19:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621465#M925998</link>
      <description>Hi Tracey:&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;YESTERDAY=$(caljd.sh $(caljd.sh -p 1))&lt;BR /&gt;echo "Yesterday = ${YESTERDAY}"&lt;BR /&gt;&lt;BR /&gt;Use the attached caljd.sh&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Wed, 28 Nov 2001 19:03:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621465#M925998</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-11-28T19:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621466#M925999</link>
      <description>Tracey,&lt;BR /&gt;&lt;BR /&gt;Or you can take the simple route:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;today=`date +%d`&lt;BR /&gt;&lt;BR /&gt;yesterday=`expr $today - 1`&lt;BR /&gt;&lt;BR /&gt;echo $yesterday&lt;BR /&gt;&lt;BR /&gt;Of course this may not be as efficient as the others listed above.&lt;BR /&gt;&lt;BR /&gt;-Mike</description>
      <pubDate>Wed, 28 Nov 2001 19:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621466#M925999</guid>
      <dc:creator>Mike Hassell</dc:creator>
      <dc:date>2001-11-28T19:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621467#M926000</link>
      <description>Try this out&lt;BR /&gt;&lt;BR /&gt;DATE=`TZ=MET+24 date +%d`&lt;BR /&gt;echo $DATE&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;C</description>
      <pubDate>Wed, 28 Nov 2001 19:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621467#M926000</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-28T19:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621468#M926001</link>
      <description>In perl you can try&lt;BR /&gt;&lt;BR /&gt;perl -e 'print scalar localtime (time -1*86400),"\n"' and you can replace the 1 with whatever number you want if you need more than one day ago.&lt;BR /&gt;&lt;BR /&gt;Hope it helps</description>
      <pubDate>Wed, 28 Nov 2001 21:15:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621468#M926001</guid>
      <dc:creator>Jeffrey S. Sims</dc:creator>
      <dc:date>2001-11-28T21:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621469#M926002</link>
      <description>Tracey,&lt;BR /&gt;Thanks for the points, you pushed me over the top and presented me with what everyone says is the coolest hat to have. Thanx.&lt;BR /&gt;&lt;BR /&gt;C</description>
      <pubDate>Wed, 28 Nov 2001 21:22:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621469#M926002</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-28T21:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script - Yesterday's date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621470#M926003</link>
      <description>Another take on Mike's -&lt;BR /&gt;&lt;BR /&gt;let yesterday=`date +%d`-1&lt;BR /&gt;dl</description>
      <pubDate>Thu, 29 Nov 2001 23:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-yesterday-s-date/m-p/2621470#M926003</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2001-11-29T23:57:53Z</dc:date>
    </item>
  </channel>
</rss>

