<?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: Script Questions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154993#M683979</link>
    <description>Untested, but something like this should do what you want:&lt;BR /&gt;&lt;BR /&gt;echo 'select * from table where id in ('$(sed -e "s/^\\|\$/'/g" test.txt | paste -d, -s)');'&lt;BR /&gt;</description>
    <pubDate>Thu, 05 Feb 2009 16:04:53 GMT</pubDate>
    <dc:creator>Heironimus</dc:creator>
    <dc:date>2009-02-05T16:04:53Z</dc:date>
    <item>
      <title>Script Questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154992#M683978</link>
      <description>I need to populate a TEMPLATE prior to running with some particular items.. I have a script that creates a flat file in columnar data format. &lt;BR /&gt;&lt;BR /&gt;177&lt;BR /&gt;55&lt;BR /&gt;5994&lt;BR /&gt;5996&lt;BR /&gt;5997&lt;BR /&gt;.... &lt;BR /&gt;varN &lt;BR /&gt;&lt;BR /&gt;TEMPLATE --&lt;BR /&gt;select * from table&lt;BR /&gt;-- INSERT WHERE CLAUSE HERE &lt;BR /&gt;where id in ( '177','55','5994','5995','5997','varN' )&lt;BR /&gt;&lt;BR /&gt;any ideas appreciated</description>
      <pubDate>Thu, 05 Feb 2009 15:05:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154992#M683978</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-02-05T15:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script Questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154993#M683979</link>
      <description>Untested, but something like this should do what you want:&lt;BR /&gt;&lt;BR /&gt;echo 'select * from table where id in ('$(sed -e "s/^\\|\$/'/g" test.txt | paste -d, -s)');'&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154993#M683979</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2009-02-05T16:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script Questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154994#M683980</link>
      <description>Thank you.. &lt;BR /&gt;&lt;BR /&gt;STAGEDFILES=/mps-docs/mps-docs/mpsplustest/applicant/&lt;BR /&gt;cd $STAGEDFILES&lt;BR /&gt;rm -f /tmp/jac.txt&lt;BR /&gt;touch /tmp/jac.txt&lt;BR /&gt;for fn1 in `find -type f -mmin -360000 -print`&lt;BR /&gt;do&lt;BR /&gt;export fn=`echo $fn1| awk '{print substr($1,3,22)}'`&lt;BR /&gt;for appid in  `echo $fn |awk -F_ '{print $2}'`&lt;BR /&gt;    do&lt;BR /&gt;        export distID=`echo $fn |awk -F_ '{print $1}'`&lt;BR /&gt;        export appID=`echo $fn |awk -F_ '{print $2}'`&lt;BR /&gt;        export docID=`echo $fn |awk -F_ '{print $3}'|cut -d. -f1`&lt;BR /&gt;        export ext=`echo $fn |awk -F_ '{print $3}'|cut -d. -f2`&lt;BR /&gt;&lt;BR /&gt;        export ITERID=`echo 0`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo $distID &amp;gt;&amp;gt; /tmp/jac.txt&lt;BR /&gt;done&lt;BR /&gt;done&lt;BR /&gt;sort /tmp/jac.txt |uniq &amp;gt; /tmp/jac1.txt&lt;BR /&gt;echo 'select * from table where id in ('$(sed -e "s/^\\|\$/'/g" /tmp/jac1.txt | paste -d, -s)');' &amp;gt; /tmp/TEMPLATE&lt;BR /&gt;more /tmp/TEMPLATE&lt;BR /&gt;cd &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154994#M683980</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-02-05T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script Questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154995#M683981</link>
      <description>See post above</description>
      <pubDate>Thu, 05 Feb 2009 16:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-questions/m-p/5154995#M683981</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-02-05T16:42:18Z</dc:date>
    </item>
  </channel>
</rss>

