<?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: Shell script array in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886372#M935640</link>
    <description>Try to use /after small modifications/ this: &lt;BR /&gt;&lt;BR /&gt;for unm in `awk -F: '{print $1}' /etc/passwd`; do&lt;BR /&gt;        par1=`grep "$unm" /etc/group`&lt;BR /&gt;        if [ "$par1" = "" ]; then&lt;BR /&gt;        echo "no matches for unm"&lt;BR /&gt;        else&lt;BR /&gt;        echo "$unm already has in /etc/group"&lt;BR /&gt;        fi&lt;BR /&gt;        done&lt;BR /&gt;&lt;BR /&gt;Regards,Stan&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Jan 2003 07:02:42 GMT</pubDate>
    <dc:creator>Stanimir</dc:creator>
    <dc:date>2003-01-22T07:02:42Z</dc:date>
    <item>
      <title>Shell script array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886367#M935635</link>
      <description>how to use array in shell script? can show me examples on how to assign/extract value on array? If i'm going to assign nearly thousand of value into array, can it support?&lt;BR /&gt;&lt;BR /&gt;I have this situation, i got list A and list B. I need to compare value on list A and B and output ONLY value that is same on both list, got better idea others than diff command?</description>
      <pubDate>Tue, 21 Jan 2003 08:40:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886367#M935635</guid>
      <dc:creator>Jason Tan</dc:creator>
      <dc:date>2003-01-21T08:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886368#M935636</link>
      <description>Did you try 'comm' command ?</description>
      <pubDate>Tue, 21 Jan 2003 09:17:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886368#M935636</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-01-21T09:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886369#M935637</link>
      <description>Hi,&lt;BR /&gt;an aexample of a ksh array  (up to 1024). First, assign some values:&lt;BR /&gt;&lt;BR /&gt;# list_A[1]="position no. 1"&lt;BR /&gt;# list_A[2]="position no. 2"&lt;BR /&gt;# list_A[0]="position no. zero"&lt;BR /&gt;# list_A[1023]="position no. 1023"&lt;BR /&gt;&lt;BR /&gt;Then, show the content:&lt;BR /&gt;&lt;BR /&gt;# echo ${list_A[0]}&lt;BR /&gt;position no. zero&lt;BR /&gt;&lt;BR /&gt;# NUMBER=1022&lt;BR /&gt;# echo ${list_A[$NUMBER+1]}&lt;BR /&gt;position no. 1023&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John K.</description>
      <pubDate>Tue, 21 Jan 2003 09:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886369#M935637</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-01-21T09:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886370#M935638</link>
      <description>&lt;BR /&gt;some more commands:&lt;BR /&gt;&lt;BR /&gt;sdiff&lt;BR /&gt;join&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jan 2003 10:05:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886370#M935638</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-01-21T10:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886371#M935639</link>
      <description>Also, you can define a string using set -A &lt;VAR_NAME&gt; a b c d e f&lt;BR /&gt;&lt;BR /&gt;and address this VAR_NAME using&lt;BR /&gt;$VAR_NAME[0]....&lt;/VAR_NAME&gt;</description>
      <pubDate>Tue, 21 Jan 2003 12:56:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886371#M935639</guid>
      <dc:creator>Julio Yamawaki</dc:creator>
      <dc:date>2003-01-21T12:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886372#M935640</link>
      <description>Try to use /after small modifications/ this: &lt;BR /&gt;&lt;BR /&gt;for unm in `awk -F: '{print $1}' /etc/passwd`; do&lt;BR /&gt;        par1=`grep "$unm" /etc/group`&lt;BR /&gt;        if [ "$par1" = "" ]; then&lt;BR /&gt;        echo "no matches for unm"&lt;BR /&gt;        else&lt;BR /&gt;        echo "$unm already has in /etc/group"&lt;BR /&gt;        fi&lt;BR /&gt;        done&lt;BR /&gt;&lt;BR /&gt;Regards,Stan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jan 2003 07:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-array/m-p/2886372#M935640</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-01-22T07:02:42Z</dc:date>
    </item>
  </channel>
</rss>

