<?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 awk and shell problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194799#M680432</link>
    <description>Could anyone help me with this plz......I haven't done much of awk and came across this which i couldnt solve&lt;BR /&gt;&lt;BR /&gt;What does this do?&lt;BR /&gt;&lt;BR /&gt;o   awk -F':' '/^[Tt]he c.?[tw] jumps over the moon/{ print $1 }'  ~/tmp/foo&lt;BR /&gt; &lt;BR /&gt;In PERL what does this mean?&lt;BR /&gt;&lt;BR /&gt;o   $a-&amp;gt;{‘foo’}&lt;BR /&gt;&lt;BR /&gt;In ksh what does this do?&lt;BR /&gt;&lt;BR /&gt;o   myhost$ &amp;gt;/tmp/foo&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;i will really appreciate the help</description>
    <pubDate>Sat, 22 Aug 2009 00:36:01 GMT</pubDate>
    <dc:creator>pareshan</dc:creator>
    <dc:date>2009-08-22T00:36:01Z</dc:date>
    <item>
      <title>awk and shell problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194799#M680432</link>
      <description>Could anyone help me with this plz......I haven't done much of awk and came across this which i couldnt solve&lt;BR /&gt;&lt;BR /&gt;What does this do?&lt;BR /&gt;&lt;BR /&gt;o   awk -F':' '/^[Tt]he c.?[tw] jumps over the moon/{ print $1 }'  ~/tmp/foo&lt;BR /&gt; &lt;BR /&gt;In PERL what does this mean?&lt;BR /&gt;&lt;BR /&gt;o   $a-&amp;gt;{‘foo’}&lt;BR /&gt;&lt;BR /&gt;In ksh what does this do?&lt;BR /&gt;&lt;BR /&gt;o   myhost$ &amp;gt;/tmp/foo&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;i will really appreciate the help</description>
      <pubDate>Sat, 22 Aug 2009 00:36:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194799#M680432</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-08-22T00:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: awk and shell problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194800#M680433</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Firstly, your current ITRC status is&lt;BR /&gt;not flattering:&lt;BR /&gt;&lt;BR /&gt;"I have assigned points to 63 of 132&lt;BR /&gt;responses to  my questions."&lt;BR /&gt;&lt;BR /&gt;If you want to show appreciation when others&lt;BR /&gt;take time to reply to your questions, at a&lt;BR /&gt;minimum you should assign points.&lt;BR /&gt;&lt;BR /&gt;Secondly, these are classical school&lt;BR /&gt;assignment questions. If you ever&lt;BR /&gt;had a chance to log into any Unix and/or &lt;BR /&gt;Linux servers, why did not you try to run&lt;BR /&gt;these commands and see what they do.&lt;BR /&gt;Believe me, the answers are very&lt;BR /&gt;simple and even logical. Plus,&lt;BR /&gt;on-line manuals for awk, Shell and perl&lt;BR /&gt;would help immediately too.&lt;BR /&gt;&lt;BR /&gt;ITRC forums should not be abused as each&lt;BR /&gt;of us have other serious jobs to do.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Sat, 22 Aug 2009 00:45:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194800#M680433</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-08-22T00:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: awk and shell problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194801#M680434</link>
      <description>1  $ awk -F':' '/^[Tt]he c.?[tw] jumps over the moon/{ print $1 }' ~/tmp/foo&lt;BR /&gt;&lt;BR /&gt;for every line in $HOME/tmp/foo like&lt;BR /&gt;The c..t jumps over the moon :1234&lt;BR /&gt;it prints what is before ":"&lt;BR /&gt;-F : is for field separator definition&lt;BR /&gt;/^pattern/{action}&lt;BR /&gt;execute action for each line starting with the pattern&lt;BR /&gt;print $1 since we have -F : will display what is before :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In ksh what does this do?&lt;BR /&gt;&lt;BR /&gt;o myhost$ &amp;gt;/tmp/foo&lt;BR /&gt;&lt;BR /&gt;myhost$ is your prompt apparantly&lt;BR /&gt;so it trucate /tmp/foo&lt;BR /&gt;&lt;BR /&gt;open /tmp/foo with create, truncate flag, and since there is nothing to execute on the line close it&lt;BR /&gt;so just a truncate&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Aug 2009 09:37:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194801#M680434</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-08-24T09:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: awk and shell problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194802#M680435</link>
      <description>Thanks alot&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Aug 2009 12:29:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194802#M680435</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-08-24T12:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: awk and shell problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194803#M680436</link>
      <description>thanks</description>
      <pubDate>Mon, 24 Aug 2009 12:47:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-shell-problem/m-p/5194803#M680436</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-08-24T12:47:29Z</dc:date>
    </item>
  </channel>
</rss>

