<?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: build a string in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996863#M125601</link>
    <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I'm not so shure what you mean?&lt;BR /&gt;If you want to ptint this string it's like:&lt;BR /&gt;print "ENDED: Sat Apr 12"&lt;BR /&gt;If you want to take the date and format it&lt;BR /&gt;as you want you can use the "date" command&lt;BR /&gt;with parameter that spesify the format of&lt;BR /&gt;the output, check the man for the date&lt;BR /&gt;to see the parameters.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
    <pubDate>Fri, 13 Jun 2003 12:37:31 GMT</pubDate>
    <dc:creator>Caesar_3</dc:creator>
    <dc:date>2003-06-13T12:37:31Z</dc:date>
    <item>
      <title>build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996857#M125595</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;how can build a string like this :&lt;BR /&gt;&lt;BR /&gt;ENDED: Sat Apr 12 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jun 2003 12:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996857#M125595</guid>
      <dc:creator>Claudio_17</dc:creator>
      <dc:date>2003-06-13T12:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996858#M125596</link>
      <description>echo "ENDED: " `date`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 13 Jun 2003 12:35:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996858#M125596</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-06-13T12:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996859#M125597</link>
      <description>Hi,&lt;BR /&gt;echo "ENDED: $(date +'%a %b %d')"&lt;BR /&gt;Regards,&lt;BR /&gt;Tom</description>
      <pubDate>Fri, 13 Jun 2003 12:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996859#M125597</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2003-06-13T12:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996860#M125598</link>
      <description>echo "ENDED: Sat Apr 12"&lt;BR /&gt;works too!</description>
      <pubDate>Fri, 13 Jun 2003 12:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996860#M125598</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2003-06-13T12:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996861#M125599</link>
      <description>STRING="ENDED: Sat Apr 12"&lt;BR /&gt;&lt;BR /&gt;Perhaps your question is badly worded, though: this is too easy.  Here's another:&lt;BR /&gt;&lt;BR /&gt;DATE="Sat Apr 12"&lt;BR /&gt;STATUS="ENDED:"&lt;BR /&gt;STRING="$STATUS $DATE"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 13 Jun 2003 12:36:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996861#M125599</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-06-13T12:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996862#M125600</link>
      <description>.. i want add that if , for example is 1th of April , I need string ENDED: Sat Apr  1 and &lt;BR /&gt;not ENDED: Sat Apr 1  ( note position of numer one )&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jun 2003 12:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996862#M125600</guid>
      <dc:creator>Claudio_17</dc:creator>
      <dc:date>2003-06-13T12:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996863#M125601</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I'm not so shure what you mean?&lt;BR /&gt;If you want to ptint this string it's like:&lt;BR /&gt;print "ENDED: Sat Apr 12"&lt;BR /&gt;If you want to take the date and format it&lt;BR /&gt;as you want you can use the "date" command&lt;BR /&gt;with parameter that spesify the format of&lt;BR /&gt;the output, check the man for the date&lt;BR /&gt;to see the parameters.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Fri, 13 Jun 2003 12:37:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996863#M125601</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-06-13T12:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996864#M125602</link>
      <description>Hi  Claudio,&lt;BR /&gt;try this:&lt;BR /&gt;&lt;BR /&gt;DATE=$( date +"%a %b %e" )&lt;BR /&gt;&lt;BR /&gt;STRING="ENDED: "$DATE&lt;BR /&gt;&lt;BR /&gt;echo $STRING&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jun 2003 12:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996864#M125602</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-13T12:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996865#M125603</link>
      <description>Hi,&lt;BR /&gt;That would be &lt;BR /&gt;echo "ENDED: $(date +'%a %b %e')"&lt;BR /&gt;Regards,&lt;BR /&gt;Tom</description>
      <pubDate>Fri, 13 Jun 2003 12:40:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996865#M125603</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2003-06-13T12:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996866#M125604</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try this one:&lt;BR /&gt;&lt;BR /&gt;echo "ENDED: $(date '+%a %b %d')"&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 13 Jun 2003 12:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996866#M125604</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2003-06-13T12:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996867#M125605</link>
      <description>Sorry , I try explain better :  the date is not a costant ; again , this string is what fbackup write in /var/adm/fbackupfiles/dates using  -u option ; I want check this string to be absolutely sure fbackup terminated correctly ; so I need build a string every day . A bit problem is that when day is between 1-9  there are 2 blank spaces between the end on month ..</description>
      <pubDate>Fri, 13 Jun 2003 12:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996867#M125605</guid>
      <dc:creator>Claudio_17</dc:creator>
      <dc:date>2003-06-13T12:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996868#M125606</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;DATE=`date +'%a %b %e'` &lt;BR /&gt;STATUS="ENDED:" &lt;BR /&gt;STRING="$STATUS $DATE"&lt;BR /&gt;&lt;BR /&gt;echo $STRING&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dario</description>
      <pubDate>Fri, 13 Jun 2003 12:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996868#M125606</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-06-13T12:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996869#M125607</link>
      <description>Hi Claudio,&lt;BR /&gt;quoting from "man date"&lt;BR /&gt;&lt;BR /&gt;   %e   Day of the month as a two-character decimal number with&lt;BR /&gt;                leading space fill [" 1"-"31" ].  For example, 12.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;so %e should fulfill your requirements !&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt; Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jun 2003 12:49:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996869#M125607</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-13T12:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996870#M125608</link>
      <description>Hi Claudio:&lt;BR /&gt;&lt;BR /&gt;If you want to align a day value like one as ' 1' and not '1' use a formatted print, thusly:&lt;BR /&gt;&lt;BR /&gt;# printf "ENDED: %s %s %2d\n" $(date +'%a') $(date +'%b') $(date +'%d')&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 13 Jun 2003 12:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996870#M125608</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-13T12:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996871#M125609</link>
      <description>If you install the GNU date program, you can specify the date you want displayed with the -d option:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo ENDED: `./date -d 4/1/2003 +"%a %b %_d"`&lt;BR /&gt;&lt;BR /&gt;See the archive at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/sh_utils-2.0/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/sh_utils-2.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jun 2003 12:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996871#M125609</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-06-13T12:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996872#M125610</link>
      <description>Claudio:&lt;BR /&gt;&lt;BR /&gt;Replace the %e for %d in my answer. This was taken from the date man pages.&lt;BR /&gt;&lt;BR /&gt; %d   Day of the month as a two-digit decimal number [01-31].  For&lt;BR /&gt;                example, 12.&lt;BR /&gt;&lt;BR /&gt;Regads,&lt;BR /&gt;&lt;BR /&gt;Dario</description>
      <pubDate>Fri, 13 Jun 2003 13:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996872#M125610</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-06-13T13:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: build a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996873#M125611</link>
      <description>Thanks all ver much .&lt;BR /&gt;&lt;BR /&gt;Sorry Tom ..for only 3 pts ; your was first resolutive answer .&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jun 2003 13:03:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/build-a-string/m-p/2996873#M125611</guid>
      <dc:creator>Claudio_17</dc:creator>
      <dc:date>2003-06-13T13:03:36Z</dc:date>
    </item>
  </channel>
</rss>

