<?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 Number and name of parameters given for a function ... in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699746#M103246</link>
    <description>Hi ...&lt;BR /&gt;i'd like to remember how do you kwno number of elements given in a function?&lt;BR /&gt;for example:&lt;BR /&gt;&lt;BR /&gt;we suppose function is named "find_words"&lt;BR /&gt;&lt;BR /&gt;and find_word requires some parameters:&lt;BR /&gt;&lt;BR /&gt;root@user1&amp;gt; find_words lettera letterb letterc letterd&lt;BR /&gt;&lt;BR /&gt;i do not remember how to know the number and parameters given when find_words in invoked,&lt;BR /&gt;i think is like $? $#, i do not remember..&lt;BR /&gt;before the script work is neccesary verify if all parameters are given and if they are name correct ..&lt;BR /&gt;could you help me please?&lt;BR /&gt;&lt;BR /&gt;thanks, Manuales.</description>
    <pubDate>Thu, 29 Dec 2005 11:47:19 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2005-12-29T11:47:19Z</dc:date>
    <item>
      <title>Number and name of parameters given for a function ...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699746#M103246</link>
      <description>Hi ...&lt;BR /&gt;i'd like to remember how do you kwno number of elements given in a function?&lt;BR /&gt;for example:&lt;BR /&gt;&lt;BR /&gt;we suppose function is named "find_words"&lt;BR /&gt;&lt;BR /&gt;and find_word requires some parameters:&lt;BR /&gt;&lt;BR /&gt;root@user1&amp;gt; find_words lettera letterb letterc letterd&lt;BR /&gt;&lt;BR /&gt;i do not remember how to know the number and parameters given when find_words in invoked,&lt;BR /&gt;i think is like $? $#, i do not remember..&lt;BR /&gt;before the script work is neccesary verify if all parameters are given and if they are name correct ..&lt;BR /&gt;could you help me please?&lt;BR /&gt;&lt;BR /&gt;thanks, Manuales.</description>
      <pubDate>Thu, 29 Dec 2005 11:47:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699746#M103246</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2005-12-29T11:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Number and name of parameters given for a function ...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699747#M103247</link>
      <description>$# gives the number of paramaters.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 29 Dec 2005 11:51:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699747#M103247</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-12-29T11:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Number and name of parameters given for a function ...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699748#M103248</link>
      <description>I should have continued that the individual paramters are identified by $1, $2 and so on.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 29 Dec 2005 11:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699748#M103248</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-12-29T11:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Number and name of parameters given for a function ...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699749#M103249</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;The number of arguments passed to a function is known with '$#'.  Unfortunately, in HP-UX the *name* of the function executing doesn't differ from the global name.  Consider:&lt;BR /&gt;&lt;BR /&gt;cat /tmp/fct&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;echo "$0 saw $# arguments"&lt;BR /&gt;function myf&lt;BR /&gt;{&lt;BR /&gt;   echo "...but $0 saw $# arguments..."   &lt;BR /&gt;}&lt;BR /&gt;myf what did he see&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;/tmp/fct one two three&lt;BR /&gt;/tmp/fct saw 3 arguments&lt;BR /&gt;...but /tmp/fct saw 4 arguments...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 29 Dec 2005 11:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699749#M103249</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-29T11:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Number and name of parameters given for a function ...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699750#M103250</link>
      <description>Hi (again) Manuales:&lt;BR /&gt;&lt;BR /&gt;Remember, the manpages are your best friend!  The ones for 'sh-posix' or 'ksh' provide a tremendous reference:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-60103/sh-posix.1.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-60103/sh-posix.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-60103/ksh.1.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-60103/ksh.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 29 Dec 2005 11:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/number-and-name-of-parameters-given-for-a-function/m-p/3699750#M103250</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-29T11:57:53Z</dc:date>
    </item>
  </channel>
</rss>

