<?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: Input parameters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618595#M925342</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If I understand your question, then this should do it:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;A=$1&lt;BR /&gt;B=$2&lt;BR /&gt;C=$3&lt;BR /&gt;D=$4&lt;BR /&gt;E=$5&lt;BR /&gt;F=$6&lt;BR /&gt;G=$7&lt;BR /&gt;shift 7&lt;BR /&gt;H=$@&lt;BR /&gt;&lt;BR /&gt;${H} then contains all the parameters above 7.&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Nov 2001 19:09:18 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-11-21T19:09:18Z</dc:date>
    <item>
      <title>Input parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618594#M925341</link>
      <description>Hi Folks,&lt;BR /&gt;&lt;BR /&gt;   I need to write a shell script which will take min. 7 input parameters and there is no maximum limit for input parameters. I have to read the parameters 8 and above into one variable. Can some body help me how to read the parameters into one variable. Thanks in adv.&lt;BR /&gt;&lt;BR /&gt;Kris</description>
      <pubDate>Wed, 21 Nov 2001 18:54:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618594#M925341</guid>
      <dc:creator>Kris_5</dc:creator>
      <dc:date>2001-11-21T18:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Input parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618595#M925342</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If I understand your question, then this should do it:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;A=$1&lt;BR /&gt;B=$2&lt;BR /&gt;C=$3&lt;BR /&gt;D=$4&lt;BR /&gt;E=$5&lt;BR /&gt;F=$6&lt;BR /&gt;G=$7&lt;BR /&gt;shift 7&lt;BR /&gt;H=$@&lt;BR /&gt;&lt;BR /&gt;${H} then contains all the parameters above 7.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Nov 2001 19:09:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618595#M925342</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-11-21T19:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Input parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618596#M925343</link>
      <description>I agree with Clay, shift will do it. Run a trial throught this script and you get a good output&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;echo $1&lt;BR /&gt;echo $2&lt;BR /&gt;echo $3&lt;BR /&gt;echo $4&lt;BR /&gt;echo $5&lt;BR /&gt;echo $6&lt;BR /&gt;echo $7&lt;BR /&gt;shift 7&lt;BR /&gt;echo $*&lt;BR /&gt;&lt;BR /&gt;sh echo.sh a b c d e f g h i j&lt;BR /&gt;&lt;BR /&gt;results...&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;c&lt;BR /&gt;d&lt;BR /&gt;e&lt;BR /&gt;f&lt;BR /&gt;g&lt;BR /&gt;h i j&lt;BR /&gt;&lt;BR /&gt;You can modify from there.&lt;BR /&gt;C</description>
      <pubDate>Wed, 21 Nov 2001 19:19:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618596#M925343</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-21T19:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Input parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618597#M925344</link>
      <description>Hello Kris,&lt;BR /&gt;&lt;BR /&gt;how about this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;while [ -z "$p7" ]; do&lt;BR /&gt;echo "enter data:\c"&lt;BR /&gt;read p1 p2 p3 p4 p5 p6 p7 rest&lt;BR /&gt;done;&lt;BR /&gt;&lt;BR /&gt;echo "1. word: $p1"&lt;BR /&gt;echo "2. word: $p2"&lt;BR /&gt;echo "3. word: $p3"&lt;BR /&gt;echo "4. word: $p4"&lt;BR /&gt;echo "5. word: $p5"&lt;BR /&gt;echo "6. word: $p6"&lt;BR /&gt;echo "7. word: $p7"&lt;BR /&gt;echo "8+ word: $rest"&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;WOdisch</description>
      <pubDate>Wed, 21 Nov 2001 19:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-parameters/m-p/2618597#M925344</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-11-21T19:30:36Z</dc:date>
    </item>
  </channel>
</rss>

