<?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 Script... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588059#M857232</link>
    <description>Hi, All!&lt;BR /&gt;&lt;BR /&gt;I want write script for command:&lt;BR /&gt;#dcNLS *.err,&lt;BR /&gt;where *.err  - 16 files.&lt;BR /&gt;How can write it for processing this files? What syntax for processing of group files?&lt;BR /&gt;Thanx in advance. Oleg</description>
    <pubDate>Tue, 02 Oct 2001 09:50:46 GMT</pubDate>
    <dc:creator>Oleg Goudovany_1</dc:creator>
    <dc:date>2001-10-02T09:50:46Z</dc:date>
    <item>
      <title>Script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588059#M857232</link>
      <description>Hi, All!&lt;BR /&gt;&lt;BR /&gt;I want write script for command:&lt;BR /&gt;#dcNLS *.err,&lt;BR /&gt;where *.err  - 16 files.&lt;BR /&gt;How can write it for processing this files? What syntax for processing of group files?&lt;BR /&gt;Thanx in advance. Oleg</description>
      <pubDate>Tue, 02 Oct 2001 09:50:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588059#M857232</guid>
      <dc:creator>Oleg Goudovany_1</dc:creator>
      <dc:date>2001-10-02T09:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588060#M857233</link>
      <description>Oleg,&lt;BR /&gt;&lt;BR /&gt;Lots of ways, in a ksh, try this:&lt;BR /&gt;&lt;BR /&gt;for file in *.err ; do&lt;BR /&gt;dcNLS $file&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Tue, 02 Oct 2001 10:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588060#M857233</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-02T10:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588061#M857234</link>
      <description>Hi Oleg,&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;cd /destination directory&lt;BR /&gt;for FILE in *.err; do&lt;BR /&gt;  command $FILE&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Sachin&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2001 12:29:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588061#M857234</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-10-02T12:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588062#M857235</link>
      <description>Hi!&lt;BR /&gt;In case $file will be processing all files in directory ?&lt;BR /&gt;But I need processing only group of files. How I can to specify in script which files need process?&lt;BR /&gt;Oleg.&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Oct 2001 02:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588062#M857235</guid>
      <dc:creator>Oleg Goudovany_1</dc:creator>
      <dc:date>2001-10-03T02:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588063#M857236</link>
      <description>Hi Oleg,&lt;BR /&gt;&lt;BR /&gt;The syntax:&lt;BR /&gt;&lt;BR /&gt;for file in *.err ; do&lt;BR /&gt;...&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;will loop round all the files ending in .err, processing them **one at a time**.  If you wish to specify a different group of files, you will need to work out how these are identified.&lt;BR /&gt;You can put in a multiple list, or have them listed in a file, i.e..&lt;BR /&gt;&lt;BR /&gt;for file in *.err *.log *.txt ; do&lt;BR /&gt;command $file&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;cat filename | while read file ; do&lt;BR /&gt;command file&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Please provide more information if this is not what you mean.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards, Robin.</description>
      <pubDate>Wed, 03 Oct 2001 06:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588063#M857236</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-03T06:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588064#M857237</link>
      <description>Hi, Robin!&lt;BR /&gt;Thanx for answer a excuse me for late reaction.&lt;BR /&gt;I did script:&lt;BR /&gt;cat list | while read list; do&lt;BR /&gt;dcNLS *.err &amp;gt; kkk&lt;BR /&gt;done&lt;BR /&gt;where list  -  file with list of files that need to process.&lt;BR /&gt;But script process all *err.files. :(&lt;BR /&gt;Where My mistake?&lt;BR /&gt;Excuse me Robin? but can "present" link at description for command that use in scripts. At russian I didnt saw, at english I didnt know where..&lt;BR /&gt; &lt;BR /&gt;Oleg</description>
      <pubDate>Thu, 04 Oct 2001 07:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588064#M857237</guid>
      <dc:creator>Oleg Goudovany_1</dc:creator>
      <dc:date>2001-10-04T07:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588065#M857238</link>
      <description>Hi Oleg,&lt;BR /&gt;&lt;BR /&gt;Your script should read:&lt;BR /&gt;&lt;BR /&gt;cat list | while read file; do &lt;BR /&gt;echo Processing $file ...&lt;BR /&gt;dcNLS $file &amp;gt;&amp;gt; kkk      # NOT -&amp;gt; dcNLS *err &amp;lt;-&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I left off the "$" in my previous answer - sorry.  The echo statement will let you know which file it is processing.  Use a double "&amp;gt;" for redirection otherwise it will get overwritten each time.&lt;BR /&gt;&lt;BR /&gt;Hope this helps, Robin.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Oct 2001 07:32:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2588065#M857238</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-04T07:32:55Z</dc:date>
    </item>
  </channel>
</rss>

