<?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/4293840#M673133</link>
    <description>&amp;gt;JRF: Empirical analysis suggests that the maximum repetition is 255.&lt;BR /&gt;&lt;BR /&gt;255 is right there on the man page, regexp(5):&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/regexp.5.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/regexp.5.html&lt;/A&gt;</description>
    <pubDate>Sun, 26 Oct 2008 00:27:38 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-10-26T00:27:38Z</dc:date>
    <item>
      <title>grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293829#M673122</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;Could you tell me the command for the following requirement,&lt;BR /&gt;&lt;BR /&gt;I want to delete a line by finding a word AB at positions 431 and 432 in a file, and copy into a new file with the remaining lines.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Fri, 24 Oct 2008 16:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293829#M673122</guid>
      <dc:creator>PK_1975</dc:creator>
      <dc:date>2008-10-24T16:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293830#M673123</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;One way:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'print unless /.{430}AB/' file &amp;gt; file.new&lt;BR /&gt;&lt;BR /&gt;Note that Perl counts characters starting from zero.  That is, the first character of every line is character-0.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 24 Oct 2008 17:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293830#M673123</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-24T17:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293831#M673124</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;...and since you specifically mentioned 'grep' :&lt;BR /&gt;&lt;BR /&gt;# grep -vE .{430}AB file &amp;gt; file.new&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 24 Oct 2008 17:02:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293831#M673124</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-24T17:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293832#M673125</link>
      <description>Hello &lt;BR /&gt;&lt;BR /&gt;The command you provide perl and grep is not working&lt;BR /&gt;&lt;BR /&gt;below is the error I got with grep&lt;BR /&gt;&lt;BR /&gt;grep -vE .{430}PA file &amp;gt; file.new&lt;BR /&gt;grep: Invalid {} repetition.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the line starts with "1" and at positions 431 and 432 we have P &amp;amp; A, I want to delete those line of that type in the file</description>
      <pubDate>Fri, 24 Oct 2008 17:30:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293832#M673125</guid>
      <dc:creator>PK_1975</dc:creator>
      <dc:date>2008-10-24T17:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293833#M673126</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;OK, so the 'grep' gives:&lt;BR /&gt;&lt;BR /&gt;grep: Invalid {} repetition.&lt;BR /&gt;&lt;BR /&gt;This means that this version of 'grep' doesn't handle "large" repetions.  That's why I suggested Perl in the first place, since it lacks silly limits.  Adjust your counting to be from zero instead of one and use Perl.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 24 Oct 2008 18:01:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293833#M673126</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-24T18:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293834#M673127</link>
      <description>Hello &lt;BR /&gt;&lt;BR /&gt;I am sending a test file, please tell me how to delete a line&lt;BR /&gt;&lt;BR /&gt;In the file first letter as "1" in red and "PA" in red, PA Starts at position 431, I want to delete those type of line in every file.</description>
      <pubDate>Fri, 24 Oct 2008 18:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293834#M673127</guid>
      <dc:creator>PK_1975</dc:creator>
      <dc:date>2008-10-24T18:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293835#M673128</link>
      <description>that looks suspiciously like real account information.....&lt;BR /&gt;&lt;BR /&gt;which shouldn't ever be posted....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2008 18:52:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293835#M673128</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-10-24T18:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293836#M673129</link>
      <description>&amp;gt;JRF: grep: Invalid {} repetition.&lt;BR /&gt;&amp;gt;This means that this version of grep doesn't handle "large" repetitions.&lt;BR /&gt;&lt;BR /&gt;You can simply add up repetitions:&lt;BR /&gt;grep -v '^.\{200\}.\{230\}AB' file &amp;gt; file.new&lt;BR /&gt;&lt;BR /&gt;&amp;gt;In the file first letter as "1" and "PA", PA Starts at position 431&lt;BR /&gt;&lt;BR /&gt;If that "1" is important you can use:&lt;BR /&gt;grep -v '^1.\{200\}.\{229\}AB' file &amp;gt; file.new</description>
      <pubDate>Fri, 24 Oct 2008 23:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293836#M673129</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-24T23:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293837#M673130</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: You can simply add up repetitions:&lt;BR /&gt;&lt;BR /&gt;Yes, of course you can, but this is a nuisance.  If the OP is fixed on 'grep', though, I agree that factoring is all that's left :-)&lt;BR /&gt;&lt;BR /&gt;Then again, the above [ grep -vE .{430}PA file ] worked with GNU's 'grep' :-}}&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 25 Oct 2008 13:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293837#M673130</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-25T13:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293838#M673131</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I tried with ur suggestions, but it failing and getting this error&lt;BR /&gt;&lt;BR /&gt;grep: Invalid {} repetition</description>
      <pubDate>Sat, 25 Oct 2008 14:34:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293838#M673131</guid>
      <dc:creator>PK_1975</dc:creator>
      <dc:date>2008-10-25T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293839#M673132</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I tried with ur suggestions, but it failing and getting this error:&lt;BR /&gt;grep: Invalid {} repetition&lt;BR /&gt;&lt;BR /&gt;Well, I don't think you tried the factoring Dennis suggested!  Empirical analysis suggests that the maximum repetition is 255.  As I said, above, this is one choice; another is Perl; and yet another is GNU's 'grep'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Oct 2008 14:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293839#M673132</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-25T14:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293840#M673133</link>
      <description>&amp;gt;JRF: Empirical analysis suggests that the maximum repetition is 255.&lt;BR /&gt;&lt;BR /&gt;255 is right there on the man page, regexp(5):&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/regexp.5.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/regexp.5.html&lt;/A&gt;</description>
      <pubDate>Sun, 26 Oct 2008 00:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep/m-p/4293840#M673133</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-26T00:27:38Z</dc:date>
    </item>
  </channel>
</rss>

