<?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: Command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505207#M887216</link>
    <description>Here is a one line perl program&lt;BR /&gt;&lt;BR /&gt;perl -e '@d=localtime(time()-86400);$d[5]+=1900;$d[4]++; print join("/",@d[4,3,5]),"\n";'</description>
    <pubDate>Wed, 14 Mar 2001 19:59:44 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2001-03-14T19:59:44Z</dc:date>
    <item>
      <title>Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505203#M887212</link>
      <description>Is there any way to know yesterday's date with a command ?&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Mar 2001 18:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505203#M887212</guid>
      <dc:creator>Marco Hernandez_1</dc:creator>
      <dc:date>2001-03-14T18:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505204#M887213</link>
      <description># date&lt;BR /&gt;Wed Mar 14 11:00:53 PST 2001&lt;BR /&gt;&lt;BR /&gt;Yesterday was Tue Mar 13, 2001.  I know...probably not the answer you're looking for...if you describe your problem a little more, someone should be able to give you, or point you to, a script which solves it.  There are many possible solutions, it just depends on what you want the end result to look like.</description>
      <pubDate>Wed, 14 Mar 2001 19:02:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505204#M887213</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-03-14T19:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505205#M887214</link>
      <description>Take a look at this thread, it mentions a date utility that MAY contain some command you are looking for -&lt;BR /&gt;and it also points to some code that may help...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x5fc3854994d9d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x5fc3854994d9d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;/rcw</description>
      <pubDate>Wed, 14 Mar 2001 19:06:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505205#M887214</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-03-14T19:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505206#M887215</link>
      <description>Are you using this date in a script or something?  If you are, you could write a script to go through and take the 'date' command.  You could pull the month in one field, the day in another using grep.  Then, have the script go and move back one day.  For example, yesterday = today-1.  You would also need to write in code so that the months would change if today was the first, and have the number of days in a month so that you had the right day when you switched months.   This would be a lot of code, since you would need to specify number of days in months and check to see the what the day is and if you move months and the like.  I would hope that there is an easier way, but I don't know of one.  This is just a suggestion.  Hope it helps.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 14 Mar 2001 19:10:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505206#M887215</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2001-03-14T19:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505207#M887216</link>
      <description>Here is a one line perl program&lt;BR /&gt;&lt;BR /&gt;perl -e '@d=localtime(time()-86400);$d[5]+=1900;$d[4]++; print join("/",@d[4,3,5]),"\n";'</description>
      <pubDate>Wed, 14 Mar 2001 19:59:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505207#M887216</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2001-03-14T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505208#M887217</link>
      <description>Just thinking of different ways to do this...a pretty ease way would not work untill tomorrow, but... as root&lt;BR /&gt;&amp;gt;EDITOR=/bin/vi&lt;BR /&gt;&amp;gt;crontab -e&lt;BR /&gt;23 59 * * * /usr/bin/date 1&amp;gt;/etc/yesterday 2&amp;gt;&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;in a $HOME/.cshrc file&amp;gt;&lt;BR /&gt;alias yesterday '/usr/bin/cat /etc/yesterday'&lt;BR /&gt;&lt;BR /&gt;Of course, there are much more creative ways to accomplish this, but this is pretty easy I think!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 14 Mar 2001 20:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505208#M887217</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-03-14T20:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505209#M887218</link>
      <description>Thanks to all you guys, every help is well received.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Mar 2001 20:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command/m-p/2505209#M887218</guid>
      <dc:creator>Marco Hernandez_1</dc:creator>
      <dc:date>2001-03-14T20:56:14Z</dc:date>
    </item>
  </channel>
</rss>

