<?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: command  in script - parameters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527818#M220948</link>
    <description>Clay obtaing error:&lt;BR /&gt;echo "${TEST}" | awk -F '@' '{print $1,$2}' | read NAME DOM&lt;BR /&gt;awk: syntax error near line 1&lt;BR /&gt;awk: bailing out near line 1&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Apr 2005 09:36:06 GMT</pubDate>
    <dc:creator>Jairo Campana</dc:creator>
    <dc:date>2005-04-19T09:36:06Z</dc:date>
    <item>
      <title>command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527815#M220945</link>
      <description>Hello , I have:&lt;BR /&gt; TEST='*blinker@yahoo.com'&lt;BR /&gt;&lt;BR /&gt;I need to send like parameters to another command(inyec) , the name user and domain without @&lt;BR /&gt;ex command manually:&lt;BR /&gt;inyec -l reinstall -u "*binker" -d "yahoo.com"&lt;BR /&gt;&lt;BR /&gt;since I can do it in  my script.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2005 09:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527815#M220945</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2005-04-19T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527816#M220946</link>
      <description>TEST="blinker@yahoo.com"&lt;BR /&gt;&lt;BR /&gt;echo "${TEST}" | awk -F '@' '{print $1,$2}' | read NAME DOM&lt;BR /&gt;inyec -l reinstall -u "${NAME}" -d "${DOM}"</description>
      <pubDate>Tue, 19 Apr 2005 09:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527816#M220946</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-04-19T09:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527817#M220947</link>
      <description>TEST="*blinker@yahoo.com"&lt;BR /&gt;&lt;BR /&gt;echo "${TEST}" | tr '@' ' ' | read NAME DOM&lt;BR /&gt;inyec -l reinstall -u "${NAME}" -d "${DOM}"</description>
      <pubDate>Tue, 19 Apr 2005 09:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527817#M220947</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-04-19T09:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527818#M220948</link>
      <description>Clay obtaing error:&lt;BR /&gt;echo "${TEST}" | awk -F '@' '{print $1,$2}' | read NAME DOM&lt;BR /&gt;awk: syntax error near line 1&lt;BR /&gt;awk: bailing out near line 1&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2005 09:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527818#M220948</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2005-04-19T09:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527819#M220949</link>
      <description>As we've had awk and tr, that just leaves sed and perl&lt;BR /&gt;&lt;BR /&gt;inyec -l reinstall `echo "$TEST" | sed -e 's/^/-u "/' -e 's/@/" -d "/' -e 's/$/"/'`&lt;BR /&gt;&lt;BR /&gt;I'll leave perl to someone else&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2005 09:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527819#M220949</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-19T09:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527820#M220950</link>
      <description>Jairo,&lt;BR /&gt;have attached shell script that test first two answers.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 19 Apr 2005 09:42:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527820#M220950</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-04-19T09:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527821#M220951</link>
      <description>I don't see anything wrong. You did enclose {print $1,$2} in single quotes?</description>
      <pubDate>Tue, 19 Apr 2005 09:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527821#M220951</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-04-19T09:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527822#M220952</link>
      <description>Peter ANSW1 NO WORK ANSW2 no work:&lt;BR /&gt;USING set -x in the script obtaing:&lt;BR /&gt;&lt;BR /&gt;ANWS1:&lt;BR /&gt;++ echo '*jairo@speedy.com.ar'&lt;BR /&gt;++ awk -F '@{print $1,$2}'&lt;BR /&gt;++ NAME DOM&lt;BR /&gt;awk: ./TESTO.sh: NAME: command not found&lt;BR /&gt;syntax error near line 1&lt;BR /&gt;awk: bailing out near line 1&lt;BR /&gt;++ inyec -l reinstall -u '' -d ''&lt;BR /&gt;&lt;BR /&gt;ANWS2:&lt;BR /&gt;echo '*jairo@speedy.com.ar'&lt;BR /&gt;++ tr @ ' '&lt;BR /&gt;++ read NAME DOM&lt;BR /&gt;++ inyec -l reinstall -u '' -d ''&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2005 09:51:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527822#M220952</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2005-04-19T09:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527823#M220953</link>
      <description>yes clay enclose {print $1,$2} in single quotes:}&lt;BR /&gt;echo "${TEST}" | awk -F '@' '{print $1,$2}' | read NAME DOM&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2005 09:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527823#M220953</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2005-04-19T09:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527824#M220954</link>
      <description>excelent, Stephen:&lt;BR /&gt;ITS work:&lt;BR /&gt;&lt;BR /&gt;`echo "$TEST" | sed -e 's/^/-u "/' -e 's/@/" -d "/' -e 's/$/"/'`&lt;BR /&gt;&lt;BR /&gt;THANKS</description>
      <pubDate>Tue, 19 Apr 2005 10:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527824#M220954</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2005-04-19T10:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527825#M220955</link>
      <description>Jairo,&lt;BR /&gt;just as a thought why the first two options do not work for you, but work on my platform.&lt;BR /&gt;What OS are you running?&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 19 Apr 2005 10:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527825#M220955</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-04-19T10:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527826#M220956</link>
      <description>yes Peter my platform is solaris &lt;BR /&gt;In hpux too work ANSW1 Y ANSW2&lt;BR /&gt;&lt;BR /&gt;SUBMITED POINT for Klay and Peter</description>
      <pubDate>Tue, 19 Apr 2005 13:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527826#M220956</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2005-04-19T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: command  in script - parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527827#M220957</link>
      <description>I think the problem is that under Solaris you need to change awk to nawk (new awk). Under HP-UX awk is nawk but under Solaris awk is oawk (old awk). The funny thing is that nawk (new awk) is now about 20 years old.</description>
      <pubDate>Tue, 19 Apr 2005 14:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-in-script-parameters/m-p/3527827#M220957</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-04-19T14:18:36Z</dc:date>
    </item>
  </channel>
</rss>

