<?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/3010821#M911355</link>
    <description>Hi folks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;more "filename" | grep ^a |grep d$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;Ernesto.&lt;BR /&gt;</description>
    <pubDate>Mon, 30 Jun 2003 07:10:37 GMT</pubDate>
    <dc:creator>Ernesto Cappello</dc:creator>
    <dc:date>2003-06-30T07:10:37Z</dc:date>
    <item>
      <title>grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010817#M911351</link>
      <description>&lt;BR /&gt;  Hi Folks&lt;BR /&gt;&lt;BR /&gt;    A small doubt regarding grep. I want to grep a line from a file. file goeas like this&lt;BR /&gt;&lt;BR /&gt;skksjdfhglshdfgkdfmn&lt;BR /&gt;sdlfghsdklfgksdhfg&lt;BR /&gt;sdhgdfgghsdkfg&lt;BR /&gt;asd&lt;BR /&gt;skdjghkdjfg&lt;BR /&gt;aksjfhgkshdfgkdfd&lt;BR /&gt;&lt;BR /&gt;I want to grep the last line. I know that line is starting with a, ending with d and many alphabets in between. how should I?&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Shahul</description>
      <pubDate>Mon, 30 Jun 2003 07:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010817#M911351</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2003-06-30T07:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010818#M911352</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;cat FILE | grep ^a | egrep a.*d&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt; Massimo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jun 2003 07:06:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010818#M911352</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-30T07:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010819#M911353</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;even more short:&lt;BR /&gt;&lt;BR /&gt;cat TPURFILE| egrep ^a.*d$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Massimo&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jun 2003 07:08:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010819#M911353</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-30T07:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010820#M911354</link>
      <description>To find the phase that strating with 'a' and ending with 'e':&lt;BR /&gt;# tail -1 &lt;FILE_NAME&gt; |grep 'a*e'&lt;/FILE_NAME&gt;</description>
      <pubDate>Mon, 30 Jun 2003 07:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010820#M911354</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-06-30T07:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010821#M911355</link>
      <description>Hi folks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;more "filename" | grep ^a |grep d$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;Ernesto.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jun 2003 07:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010821#M911355</guid>
      <dc:creator>Ernesto Cappello</dc:creator>
      <dc:date>2003-06-30T07:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010822#M911356</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just one more note: You don't have to use cat here. Just shorten your command to:&lt;BR /&gt;&lt;BR /&gt;egrep "^a*d$" FILE&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Mon, 30 Jun 2003 08:37:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010822#M911356</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2003-06-30T08:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010823#M911357</link>
      <description>Hi Shahul,&lt;BR /&gt;you could try this:&lt;BR /&gt;&lt;BR /&gt;# grep "^a[a-zA-Z].[a-zA-Z]*d$" &lt;INFILE&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K. &lt;BR /&gt;&lt;/INFILE&gt;</description>
      <pubDate>Mon, 30 Jun 2003 08:37:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010823#M911357</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-06-30T08:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010824#M911358</link>
      <description>Ernesto's reply is completely bogus! You cannot grep the output of more, because it will be cluttered with terminal escapes. more/less/pg/$PAGER/... should *always* be the last command in a chain.&lt;BR /&gt;&lt;BR /&gt;And to throw in some perl :)&lt;BR /&gt;&lt;BR /&gt;# perl -ne'/^a\w*d$/ and print' file&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Mon, 30 Jun 2003 08:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/3010824#M911358</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-06-30T08:44:52Z</dc:date>
    </item>
  </channel>
</rss>

