<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712454#M659999</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please explain what is grep c*!! I don't understand how grep works without a filename as an argument. The command you have executed should typically generate a core file and prob killed by a signal.&lt;BR /&gt;&lt;BR /&gt;Help me understand!&lt;BR /&gt;When you do a grep c*, where are you searching for the pattern that contains c*? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Fri, 12 Nov 2010 04:57:18 GMT</pubDate>
    <dc:creator>Ismail Azad</dc:creator>
    <dc:date>2010-11-12T04:57:18Z</dc:date>
    <item>
      <title>Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712452#M659997</link>
      <description>i am facing a problem with grep&lt;BR /&gt;in my server there are 2 users abc abc1&lt;BR /&gt;when i login as abc the following thing does not work&lt;BR /&gt;$ grep c*&lt;BR /&gt;c&lt;BR /&gt;cc&lt;BR /&gt;..&lt;BR /&gt;as the i/p(c,cc,..) matches the regular expression c* i should get the o/p i.e grep must echo back the i/p&lt;BR /&gt;But thats not  the case&lt;BR /&gt;Whereas when i login as abc1 the things are fine.&lt;BR /&gt;The . files in both users home directory are same.&lt;BR /&gt;Even the shell is same.&lt;BR /&gt;Can somebody help me out.</description>
      <pubDate>Fri, 12 Nov 2010 04:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712452#M659997</guid>
      <dc:creator>vimalj</dc:creator>
      <dc:date>2010-11-12T04:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712453#M659998</link>
      <description>&lt;!--!*#--&gt;&amp;gt; i am facing a problem with grep &lt;BR /&gt;&lt;BR /&gt;That's one way to look at it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; $ grep c*&lt;BR /&gt;&lt;BR /&gt;What, exactly, do you expect this to do?&lt;BR /&gt;What, exactly, are you trying to do?&lt;BR /&gt;&lt;BR /&gt;      man grep&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The . files in both users home directory&lt;BR /&gt;&amp;gt; are same.&lt;BR /&gt;&lt;BR /&gt;Who cares?&lt;BR /&gt;&lt;BR /&gt;      echo c*&lt;BR /&gt;&lt;BR /&gt;Are _those_ the same?</description>
      <pubDate>Fri, 12 Nov 2010 04:43:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712453#M659998</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-11-12T04:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712454#M659999</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please explain what is grep c*!! I don't understand how grep works without a filename as an argument. The command you have executed should typically generate a core file and prob killed by a signal.&lt;BR /&gt;&lt;BR /&gt;Help me understand!&lt;BR /&gt;When you do a grep c*, where are you searching for the pattern that contains c*? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 12 Nov 2010 04:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712454#M659999</guid>
      <dc:creator>Ismail Azad</dc:creator>
      <dc:date>2010-11-12T04:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712455#M660000</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] The command you have executed should&lt;BR /&gt;&amp;gt; typically generate a core file and prob&lt;BR /&gt;&amp;gt; killed by a signal. [...]&lt;BR /&gt;&lt;BR /&gt;Let's not get carried away.  It may not make&lt;BR /&gt;much sense, but it could easily work (in&lt;BR /&gt;some sense).  For example:&lt;BR /&gt;&lt;BR /&gt;alp$ ls -l&lt;BR /&gt;total 2&lt;BR /&gt;-rw-r-----   1 SMS      40              2 Nov 11 23:35 c&lt;BR /&gt;-rw-r-----   1 SMS      40             26 Nov 11 23:34 c1&lt;BR /&gt;-rw-r-----   1 SMS      40             31 Nov 11 23:35 c2&lt;BR /&gt;-rw-r-----   1 SMS      40             15 Nov 11 23:40 c3&lt;BR /&gt;&lt;BR /&gt;alp$ grep c*&lt;BR /&gt;c1:This file contains a "c".&lt;BR /&gt;c2:This file also contains a "c".&lt;BR /&gt;&lt;BR /&gt;I don't understand what's desired here, and&lt;BR /&gt;I suspect that this command is useless, but&lt;BR /&gt;that doesn't mean that the command is pure&lt;BR /&gt;poison.</description>
      <pubDate>Fri, 12 Nov 2010 05:45:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712455#M660000</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-11-12T05:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712456#M660001</link>
      <description>&lt;!--!*#--&gt;&amp;gt;       echo c*&lt;BR /&gt;&lt;BR /&gt;In my example, of course:&lt;BR /&gt;&lt;BR /&gt;alp$ echo c*&lt;BR /&gt;c c1 c2 c3&lt;BR /&gt;&lt;BR /&gt;so:&lt;BR /&gt;&lt;BR /&gt;      grep c*&lt;BR /&gt;&lt;BR /&gt;is equivalent to:&lt;BR /&gt;&lt;BR /&gt;      grep c c1 c2 c3&lt;BR /&gt;&lt;BR /&gt;which is easy to demonstrate:&lt;BR /&gt;&lt;BR /&gt;alp$ grep c c1 c2 c3&lt;BR /&gt;c1:This file contains a "c".&lt;BR /&gt;c2:This file also contains a "c".&lt;BR /&gt;&lt;BR /&gt;(The command is still pretty useless, but&lt;BR /&gt;"grep" does what it's told.)</description>
      <pubDate>Fri, 12 Nov 2010 05:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712456#M660001</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-11-12T05:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712457#M660002</link>
      <description>Listen&lt;BR /&gt;I am testing my regular expressions using &lt;BR /&gt;grep c*.&lt;BR /&gt;I m providing the text from keyboard &lt;BR /&gt;The text that matches my regular expression is echoed back on screen&lt;BR /&gt;for e.g&lt;BR /&gt;grep c*&lt;BR /&gt;c         #i/p text&lt;BR /&gt;c         #o/p of grep as c matches c*&lt;BR /&gt;&lt;BR /&gt;did u get what i need?</description>
      <pubDate>Fri, 12 Nov 2010 07:34:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712457#M660002</guid>
      <dc:creator>vimalj</dc:creator>
      <dc:date>2010-11-12T07:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712458#M660003</link>
      <description>&amp;gt;did you get what I need?&lt;BR /&gt;&lt;BR /&gt;Just about ALL REs need to be quoted.  Unless you tell the shell not to do globbing.&lt;BR /&gt;grep "c*"&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Nov 2010 08:32:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712458#M660003</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-12T08:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712459#M660004</link>
      <description>Do you want to grep "c*" or do you want to grep "c" ?&lt;BR /&gt;In your example you should not get a match when you use "c*" .&lt;BR /&gt;Looks like you are mixing up pattern matching with Regular Expressions used in grep with pattern matching in `ls` (globbing: &lt;A href="http://en.wikipedia.org/wiki/Glob_%28programming%29" target="_blank"&gt;http://en.wikipedia.org/wiki/Glob_%28programming%29&lt;/A&gt;</description>
      <pubDate>Mon, 15 Nov 2010 08:49:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4712459#M660004</guid>
      <dc:creator>Andre Cornelissen</dc:creator>
      <dc:date>2010-11-15T08:49:25Z</dc:date>
    </item>
  </channel>
</rss>

