<?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 prinintg a file with date variable in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/prinintg-a-file-with-date-variable/m-p/4655082#M677117</link>
    <description>Dear Gurus, &lt;BR /&gt;&lt;BR /&gt;a small script , which look likes this :&lt;BR /&gt;&lt;BR /&gt;case ~~&lt;BR /&gt;&lt;BR /&gt;cd $BSSREPT;for i in `cat /home/mango/Reports/finance`;do;lp -d"$PRINTER_NAME" $i;done;;&lt;BR /&gt;&lt;BR /&gt;the problem is :&lt;BR /&gt;&lt;BR /&gt;$ more finance&lt;BR /&gt;132_DFO1001_Date_DEP.001.rpt&lt;BR /&gt;132_DFO1002_Date_DET.001.rpt&lt;BR /&gt;132_DFO1004_Date_DET_C.001.rpt&lt;BR /&gt;132_DFO1004_Date_SUM_C.001.rpt&lt;BR /&gt;132_DFO1004_DET_Date_C.001.rpt&lt;BR /&gt;~&lt;BR /&gt;since the file to be printed containd a date component which will vary everyday .....how can i have them print in my script ..hope i am clear ....Regards,&lt;BR /&gt;Rahul&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Jun 2010 13:34:46 GMT</pubDate>
    <dc:creator>DeafFrog</dc:creator>
    <dc:date>2010-06-30T13:34:46Z</dc:date>
    <item>
      <title>prinintg a file with date variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prinintg-a-file-with-date-variable/m-p/4655082#M677117</link>
      <description>Dear Gurus, &lt;BR /&gt;&lt;BR /&gt;a small script , which look likes this :&lt;BR /&gt;&lt;BR /&gt;case ~~&lt;BR /&gt;&lt;BR /&gt;cd $BSSREPT;for i in `cat /home/mango/Reports/finance`;do;lp -d"$PRINTER_NAME" $i;done;;&lt;BR /&gt;&lt;BR /&gt;the problem is :&lt;BR /&gt;&lt;BR /&gt;$ more finance&lt;BR /&gt;132_DFO1001_Date_DEP.001.rpt&lt;BR /&gt;132_DFO1002_Date_DET.001.rpt&lt;BR /&gt;132_DFO1004_Date_DET_C.001.rpt&lt;BR /&gt;132_DFO1004_Date_SUM_C.001.rpt&lt;BR /&gt;132_DFO1004_DET_Date_C.001.rpt&lt;BR /&gt;~&lt;BR /&gt;since the file to be printed containd a date component which will vary everyday .....how can i have them print in my script ..hope i am clear ....Regards,&lt;BR /&gt;Rahul&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 13:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prinintg-a-file-with-date-variable/m-p/4655082#M677117</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2010-06-30T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: prinintg a file with date variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prinintg-a-file-with-date-variable/m-p/4655083#M677118</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; since the file to be printed containd a date component which will vary everyday &lt;BR /&gt;&lt;BR /&gt;I assume that you mean your file is really a template of names where "_Date_" should be substituted with the current values.  If so, you could do something like:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;for i in `sed -e "s/_Date_/_$(date +%Y%m%d)_/" finance`; do&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;(or better):&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;for i in $(sed -e "s/_Date_/_$(date +%Y%m%d)_/" finance); do&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 14:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prinintg-a-file-with-date-variable/m-p/4655083#M677118</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-30T14:02:04Z</dc:date>
    </item>
  </channel>
</rss>

