<?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: How do you get the current date in Shell Script ?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061984#M719280</link>
    <description>No problem Stephen.  Glad to be of service!&lt;BR /&gt;&lt;BR /&gt;Don't feel bad.  It has taken me a while to get used to not using the back tick as well.  I'm just now starting to consistently use the $(command) syntax.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 03 Sep 2003 02:41:56 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2003-09-03T02:41:56Z</dc:date>
    <item>
      <title>How do you get the current date in Shell Script ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061980#M719276</link>
      <description>How do you get the current date in shell script ?&lt;BR /&gt;I want to change the file name a.txt to&lt;BR /&gt;a.yymmdd.txt in Shell script with current date.&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 02 Sep 2003 21:51:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061980#M719276</guid>
      <dc:creator>Praveen Hari</dc:creator>
      <dc:date>2003-09-02T21:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the current date in Shell Script ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061981#M719277</link>
      <description>Use the date command:&lt;BR /&gt;&lt;BR /&gt;date_format=`date +%y%m%d`&lt;BR /&gt;&lt;BR /&gt;mv a.txt a.${date_format}.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 02 Sep 2003 21:58:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061981#M719277</guid>
      <dc:creator>Tim Adamson_1</dc:creator>
      <dc:date>2003-09-02T21:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the current date in Shell Script ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061982#M719278</link>
      <description>The better way to do it is to do:&lt;BR /&gt;&lt;BR /&gt;curr_date=$(date +%y%m%d)&lt;BR /&gt;&lt;BR /&gt;The use of the back ticks (`) has basically been deprecated as it can be difficult to distinguish the back ticks from an apostrophe / single quote (') in some fonts.&lt;BR /&gt;&lt;BR /&gt;The $(command) is much more readable and does exactly the same thing.</description>
      <pubDate>Tue, 02 Sep 2003 22:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061982#M719278</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-09-02T22:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the current date in Shell Script ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061983#M719279</link>
      <description>Patrick,&lt;BR /&gt;&lt;BR /&gt;You deserve a rabbit.  I must have missed the class on the back tick getting deprecated.&lt;BR /&gt;&lt;BR /&gt;I've been punching out scripts left and right and I always hated the back tick because it was hard to read.&lt;BR /&gt;&lt;BR /&gt;Thanks for your post.&lt;BR /&gt;&lt;BR /&gt;You didn't just help the person that started the thread this time.  You helped a fellow towel-head.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 03 Sep 2003 01:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061983#M719279</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-03T01:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the current date in Shell Script ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061984#M719280</link>
      <description>No problem Stephen.  Glad to be of service!&lt;BR /&gt;&lt;BR /&gt;Don't feel bad.  It has taken me a while to get used to not using the back tick as well.  I'm just now starting to consistently use the $(command) syntax.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Sep 2003 02:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061984#M719280</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-09-03T02:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the current date in Shell Script ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061985#M719281</link>
      <description>Without the need to assign and call a variable:&lt;BR /&gt;&lt;BR /&gt;mv a.out a.$(date '+%y%m%d').out</description>
      <pubDate>Wed, 03 Sep 2003 12:03:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-you-get-the-current-date-in-shell-script/m-p/3061985#M719281</guid>
      <dc:creator>Will Couillard</dc:creator>
      <dc:date>2003-09-03T12:03:30Z</dc:date>
    </item>
  </channel>
</rss>

