<?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 Query on Command line argument in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831483#M641648</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am newbie to scripting. While I come through some docs, I crossed one topic called 'Arguments to Shell Programs". I am not able to understand that at all. If you could make me understand in a way, it would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;$0 - The command name&lt;/P&gt;&lt;P&gt;$1 - The first argument&lt;/P&gt;&lt;P&gt;$2 - The second argument&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;$9 - The ninth argument&lt;/P&gt;&lt;P&gt;$# - The number of command line arguments&lt;/P&gt;&lt;P&gt;$*&lt;/P&gt;&lt;P&gt;$n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please explain about above also.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2011 07:34:44 GMT</pubDate>
    <dc:creator>P Arumugavel</dc:creator>
    <dc:date>2011-07-19T07:34:44Z</dc:date>
    <item>
      <title>Query on Command line argument</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831483#M641648</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am newbie to scripting. While I come through some docs, I crossed one topic called 'Arguments to Shell Programs". I am not able to understand that at all. If you could make me understand in a way, it would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;$0 - The command name&lt;/P&gt;&lt;P&gt;$1 - The first argument&lt;/P&gt;&lt;P&gt;$2 - The second argument&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;$9 - The ninth argument&lt;/P&gt;&lt;P&gt;$# - The number of command line arguments&lt;/P&gt;&lt;P&gt;$*&lt;/P&gt;&lt;P&gt;$n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please explain about above also.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 07:34:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831483#M641648</guid>
      <dc:creator>P Arumugavel</dc:creator>
      <dc:date>2011-07-19T07:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Command line argument</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831519#M641649</link>
      <description>&lt;P&gt;I guess google is broken again then?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are so many shell script tutorials out there on the internet, any reply here is really just repetition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.freeos.com/guides/lsst/ch02sec13.html"&gt;http://www.freeos.com/guides/lsst/ch02sec13.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like a pretty simple intro to command line arguments&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 07:54:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831519#M641649</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-07-19T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Command line argument</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831853#M641650</link>
      <description>&lt;P&gt;Why not try it out for yourself?&lt;/P&gt;&lt;P&gt;$ your-script.sh p1 p2 p3 p4 p5 p6 p7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your-script.sh:&lt;/P&gt;&lt;P&gt;echo "$0: args: $@"&lt;/P&gt;&lt;P&gt;echo "$0 has $# args"&lt;/P&gt;&lt;P&gt;echo "$1"&lt;/P&gt;&lt;P&gt;echo "$2"&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 10:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831853#M641650</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-19T10:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Command line argument</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831933#M641651</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easiest way to learn is to read and *write*.&amp;nbsp; Your scripts can be as simple as Dennis suggested.&amp;nbsp; The important part is to practice.&amp;nbsp; Where possible, run code that you see to discover how and why it works.&amp;nbsp; An excellent source of good scripts and tutorials (including one germane to your question here) is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.shelldorado.com/"&gt;http://www.shelldorado.com/&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;A target="_blank" href="http://www.shelldorado.com/goodcoding/cmdargs.html"&gt;http://www.shelldorado.com/goodcoding/cmdargs.html&lt;/A&gt;﻿and, specifically to this question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...JRF...&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 11:33:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-on-command-line-argument/m-p/4831933#M641651</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-07-19T11:33:31Z</dc:date>
    </item>
  </channel>
</rss>

