<?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: grep command ... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655208#M677124</link>
    <description>Hi,&lt;BR /&gt;&amp;gt;&amp;gt;how can i use grep command to get the lines with words "ana" and "arturo"&lt;BR /&gt;You can use below command for grep&lt;BR /&gt;&lt;BR /&gt;#grep -e ana -e arturo filename&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Jul 2010 03:16:49 GMT</pubDate>
    <dc:creator>Suraj K Sankari</dc:creator>
    <dc:date>2010-07-01T03:16:49Z</dc:date>
    <item>
      <title>grep command ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655203#M677119</link>
      <description>hi ...&lt;BR /&gt;how can i use grep command to get several lines with different words.&lt;BR /&gt;i mean for example&lt;BR /&gt; file contains:&lt;BR /&gt;pablo&lt;BR /&gt;roberto&lt;BR /&gt;ana&lt;BR /&gt;arturo&lt;BR /&gt;enrique&lt;BR /&gt;hugo&lt;BR /&gt;&lt;BR /&gt;how can i use grep command to get the lines with words "ana" and "arturo" ?&lt;BR /&gt;&lt;BR /&gt;cat file | grep ana ...how code this?&lt;BR /&gt;thanks in advance.&lt;BR /&gt;Manuales</description>
      <pubDate>Wed, 30 Jun 2010 18:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655203#M677119</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2010-06-30T18:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: grep command ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655204#M677120</link>
      <description>sorry &lt;BR /&gt;i will not work with a file, i will work with the result of other command ....&lt;BR /&gt;i mean ... something like this:&lt;BR /&gt;&lt;BR /&gt;pl1=`/etc/ping $a 512 -n 1 | grep unknown`&lt;BR /&gt;pl2=`/etc/ping $a 512 -n 1 | grep "bytes from"`&lt;BR /&gt;&lt;BR /&gt;i do not want to use two times ping command, i want to use only one variable keeping the words unknown and/or bytes from in case exist ....&lt;BR /&gt;&lt;BR /&gt;how can i use grep command here?</description>
      <pubDate>Wed, 30 Jun 2010 18:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655204#M677120</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2010-06-30T18:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: grep command ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655205#M677121</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;# ping host -n 1|grep -E "bytes from|unknown"&lt;BR /&gt;&lt;BR /&gt;This is a regular expression alternation (or).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 Jun 2010 18:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655205#M677121</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-30T18:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: grep command ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655206#M677122</link>
      <description>thank you so much .... taking advantage, i am not very sure about 512 number when you run ping command , what does it mean?</description>
      <pubDate>Wed, 30 Jun 2010 18:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655206#M677122</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2010-06-30T18:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: grep command ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655207#M677123</link>
      <description>Hi (again) Manuales:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; .... taking advantage, i am not very sure about 512 number &lt;BR /&gt;&lt;BR /&gt;It's the packet size.  By default 'ping' uses a size of 64.  Those manpages are very friendly :-) [ man ping(1M) ].&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 Jun 2010 18:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655207#M677123</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-30T18:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: grep command ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655208#M677124</link>
      <description>Hi,&lt;BR /&gt;&amp;gt;&amp;gt;how can i use grep command to get the lines with words "ana" and "arturo"&lt;BR /&gt;You can use below command for grep&lt;BR /&gt;&lt;BR /&gt;#grep -e ana -e arturo filename&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jul 2010 03:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655208#M677124</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2010-07-01T03:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: grep command ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655209#M677125</link>
      <description>You can do this several ways.  Using -e makes it visible on the command line.  You can put them in a file with "-f search-file".&lt;BR /&gt;You can also use newlines:&lt;BR /&gt;grep ana^J&lt;BR /&gt;arturo^J&lt;BR /&gt;file&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: This is a regular expression alternation (or).&lt;BR /&gt;&lt;BR /&gt;-E uses the egrep ERE hammer.  Using -e just has a series of REs.</description>
      <pubDate>Thu, 01 Jul 2010 04:31:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655209#M677125</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-07-01T04:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: grep command ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655210#M677126</link>
      <description>Hi Manuales,&lt;BR /&gt;&lt;BR /&gt;Please use following command:&lt;BR /&gt;&lt;BR /&gt;#(ping 15.146.157.203 512 2 2&amp;gt; /dev/null) |grep -E "bytes from|unknown"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bhadresh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jul 2010 05:20:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-command/m-p/4655210#M677126</guid>
      <dc:creator>Bhadresh</dc:creator>
      <dc:date>2010-07-01T05:20:06Z</dc:date>
    </item>
  </channel>
</rss>

