<?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: Script Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879603#M100583</link>
    <description>And then there is always Perl:&lt;BR /&gt;&lt;BR /&gt;perl -ne 'print unless /_____/;' inputfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Jan 2003 22:41:38 GMT</pubDate>
    <dc:creator>John Poff</dc:creator>
    <dc:date>2003-01-10T22:41:38Z</dc:date>
    <item>
      <title>Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879600#M100580</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I want to delete line _____ from the following output.  &lt;BR /&gt;&lt;BR /&gt;ACTUATE_NETDATA&lt;BR /&gt;INTDATA1_INTDAT&lt;BR /&gt;___________&lt;BR /&gt;hncprod_group4&lt;BR /&gt;intdata1_full_h&lt;BR /&gt;&lt;BR /&gt;result i'm looking for.&lt;BR /&gt;ACTUATE_NETDATA&lt;BR /&gt;INTDATA1_INTDAT&lt;BR /&gt;hncprod_group4&lt;BR /&gt;intdata1_full_h&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jan 2003 22:30:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879600#M100580</guid>
      <dc:creator>Junior C.</dc:creator>
      <dc:date>2003-01-10T22:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879601#M100581</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;One way to do it is to use 'grep':&lt;BR /&gt;&lt;BR /&gt;grep -v '_____' inputfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jan 2003 22:32:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879601#M100581</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-10T22:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879602#M100582</link>
      <description>Or if you are a fan of 'sed':&lt;BR /&gt;&lt;BR /&gt;sed '/_____/d' inputfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jan 2003 22:33:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879602#M100582</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-10T22:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879603#M100583</link>
      <description>And then there is always Perl:&lt;BR /&gt;&lt;BR /&gt;perl -ne 'print unless /_____/;' inputfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jan 2003 22:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879603#M100583</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-10T22:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879604#M100584</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;sed '/_____/d' inputfile &lt;BR /&gt;&lt;BR /&gt;Work&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 10 Jan 2003 22:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879604#M100584</guid>
      <dc:creator>Junior C.</dc:creator>
      <dc:date>2003-01-10T22:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879605#M100585</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I'd use 'sed', but tighten the matching:&lt;BR /&gt;&lt;BR /&gt;# sed -e '/^_*$/d' filename&lt;BR /&gt;&lt;BR /&gt;Hence lines consisting *only* of underscore characters...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 10 Jan 2003 22:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879605#M100585</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-01-10T22:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879606#M100586</link>
      <description>James, that'll also delete the *empty* lines, which was not the question&lt;BR /&gt;&lt;BR /&gt;# perl -ne'/^_+$/ or print'</description>
      <pubDate>Sat, 11 Jan 2003 20:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879606#M100586</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-11T20:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879607#M100587</link>
      <description>It's interesting that out of the three ways I posted to do it, the author chose the 'sed' method which would have been my last choice.&lt;BR /&gt;&lt;BR /&gt;Someday I've got to sit down and really learn Perl regular expressions.  It just won't stick in my mind, kind of like all that English grammar I couldn't get to stick in my mind back in school.  It seems to me that regular expressions ranks right up there with gerunds and past participles.  Ouch!   :)&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Jan 2003 20:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879607#M100587</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-11T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879608#M100588</link>
      <description>Hi Merijn!&lt;BR /&gt;&lt;BR /&gt;Yes, you are correct. I did not mean to delete *empty* lines and *should* have written:&lt;BR /&gt;&lt;BR /&gt;# sed -e '/^__*$/d' filename&lt;BR /&gt;&lt;BR /&gt;...THAT IS, *two* underscore characters preceeding the asterisk so that the match is *one* underscore anchored at the line's start, followed by *zero or more* underscore's anchored to a newline.&lt;BR /&gt;&lt;BR /&gt;The extended regular expression:&lt;BR /&gt;&lt;BR /&gt;^_+$&lt;BR /&gt;&lt;BR /&gt;understood by 'perl', works nicely too with 'egrep' ['grep -E'] or with 'awk' but not with 'sed'.  &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 13 Jan 2003 03:08:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879608#M100588</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-01-13T03:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879609#M100589</link>
      <description>James, I know :] GNU sed however /does/ recognize the + metacharacter. One more reason to learn perl? One more reason to replace all default commands with there superior GNU equivalent (tar springs to mind)&lt;BR /&gt;&lt;BR /&gt;FWIW The regex bible from Jeffrey Friedl (&lt;A href="http://www.oreilly.com/catalog/regex/)" target="_blank"&gt;http://www.oreilly.com/catalog/regex/)&lt;/A&gt; has nice comparison tables for the most common filter programs in what regex flavour they accept.</description>
      <pubDate>Mon, 13 Jan 2003 07:52:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879609#M100589</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-13T07:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879610#M100590</link>
      <description>Hi (again) Merijn:&lt;BR /&gt;&lt;BR /&gt;Your points are well taken.  Ah, yes, to GNU or not to GNU...a good subject for discussion onto itself.&lt;BR /&gt;&lt;BR /&gt;Thanks for the link.  As you are probably aware, the book has a 2nd edition which certainly appears to be worth the read:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.oreillynet.com/pub/a/network/2002/07/15/regexp.html" target="_blank"&gt;http://www.oreillynet.com/pub/a/network/2002/07/15/regexp.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With warmest regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 13 Jan 2003 14:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879610#M100590</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-01-13T14:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879611#M100591</link>
      <description>I know, and I'm proud to be among the first few to find the errors in the book. Please note the errata area on the web when reading the book. Some are very misleading, and the stuff dealt with is complicated enough as it is already.</description>
      <pubDate>Mon, 13 Jan 2003 14:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879611#M100591</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-13T14:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879612#M100592</link>
      <description>Junior,&lt;BR /&gt;&lt;BR /&gt;You should take care of this:&lt;BR /&gt;&lt;BR /&gt;This member has assigned points to 13 of 86 responses to his/her questions.&lt;BR /&gt;&lt;BR /&gt;You can find your previous posts in your profile:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/TopSolutions/1,,CA485690!1!questions,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/TopSolutions/1,,CA485690!1!questions,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 13 Jan 2003 15:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879612#M100592</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2003-01-13T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879613#M100593</link>
      <description>good call Harry - People shouldn't be able to ask questions until they at least assign 0 points to a post... let alone awarding posts that are helpful</description>
      <pubDate>Mon, 13 Jan 2003 15:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2879613#M100593</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-13T15:23:48Z</dc:date>
    </item>
  </channel>
</rss>

