<?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: C shell error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-error/m-p/2444370#M8830</link>
    <description>I would guess that the cat | cut commands are generating more values then the shell is able to hold.&lt;BR /&gt;&lt;BR /&gt;I'm no C shell expert but you could get round this in the Posix shell by reading the variable in a loop:-&lt;BR /&gt;&lt;BR /&gt;cut -d: -f1-2 davey | {&lt;BR /&gt;while read gen&lt;BR /&gt;do&lt;BR /&gt;  &lt;PROCESS gen="" here=""&gt;&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PROCESS&gt;</description>
    <pubDate>Mon, 11 Sep 2000 15:23:37 GMT</pubDate>
    <dc:creator>John Palmer</dc:creator>
    <dc:date>2000-09-11T15:23:37Z</dc:date>
    <item>
      <title>C shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-error/m-p/2444369#M8829</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I am trying to extract from a file certain fields using a foreach loop as follows&lt;BR /&gt;&lt;BR /&gt;foreach gen (`cat davey | cut -d: -f1-2 ` )&lt;BR /&gt;&lt;BR /&gt;and when I run it I get the message&lt;BR /&gt;&lt;BR /&gt;cat davey&lt;BR /&gt;cut -d: -f1-2&lt;BR /&gt;Too many words from ``.&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me what I am doing wrong.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 11 Sep 2000 15:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-error/m-p/2444369#M8829</guid>
      <dc:creator>Dave Walley</dc:creator>
      <dc:date>2000-09-11T15:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: C shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-error/m-p/2444370#M8830</link>
      <description>I would guess that the cat | cut commands are generating more values then the shell is able to hold.&lt;BR /&gt;&lt;BR /&gt;I'm no C shell expert but you could get round this in the Posix shell by reading the variable in a loop:-&lt;BR /&gt;&lt;BR /&gt;cut -d: -f1-2 davey | {&lt;BR /&gt;while read gen&lt;BR /&gt;do&lt;BR /&gt;  &lt;PROCESS gen="" here=""&gt;&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PROCESS&gt;</description>
      <pubDate>Mon, 11 Sep 2000 15:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-error/m-p/2444370#M8830</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-11T15:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: C shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-error/m-p/2444371#M8831</link>
      <description>HI,&lt;BR /&gt;`cat davey | cut -d: -f1-2`&lt;BR /&gt;this will return first tow fields (words).&lt;BR /&gt;for example davey contain following line&lt;BR /&gt;aaaa : bbbb:cccc:dddd&lt;BR /&gt;then corresponding selection is&lt;BR /&gt;aaaa : bbbb&lt;BR /&gt; If your aim is to extract only one word, you have to modify command appropriately.&lt;BR /&gt;P V Patel</description>
      <pubDate>Mon, 11 Sep 2000 19:11:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-shell-error/m-p/2444371#M8831</guid>
      <dc:creator>P V Patel</dc:creator>
      <dc:date>2000-09-11T19:11:09Z</dc:date>
    </item>
  </channel>
</rss>

