<?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: Sed Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173596#M321509</link>
    <description>&amp;gt;Hein: And if only data up to the first \ needs to be stripped (unlikely):&lt;BR /&gt;sed -e 's/^[^\\]*\\//g' x&lt;BR /&gt;&lt;BR /&gt;I assumed you could just remove the "g" but that doesn't work.  It seems in your and  Dusan's answer, that "g" isn't needed.</description>
    <pubDate>Fri, 04 Apr 2008 04:59:33 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-04-04T04:59:33Z</dc:date>
    <item>
      <title>Sed Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173593#M321506</link>
      <description>I have the following file,&lt;BR /&gt;&lt;BR /&gt;Abc123&lt;BR /&gt;Abc1234&lt;BR /&gt;000\Abc1235&lt;BR /&gt;101\Abc1236&lt;BR /&gt;X01\Abc1237&lt;BR /&gt;&lt;BR /&gt;I want to strip out anything that is before the "\" so the output would be,&lt;BR /&gt;&lt;BR /&gt;Abc123&lt;BR /&gt;Abc1234&lt;BR /&gt;Abc1235&lt;BR /&gt;Abc1236&lt;BR /&gt;Abc1237&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Apr 2008 17:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173593#M321506</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2008-04-03T17:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173594#M321507</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Say,m your lines are saved in file ZZZ.Then simply run:&lt;BR /&gt;&lt;BR /&gt;# sed -e 's/^.*\\//g' ZZZ&lt;BR /&gt;&lt;BR /&gt;The result is:&lt;BR /&gt;&lt;BR /&gt;Abc123&lt;BR /&gt;Abc1234&lt;BR /&gt;Abc1235&lt;BR /&gt;Abc1236&lt;BR /&gt;Abc1237&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Thu, 03 Apr 2008 18:45:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173594#M321507</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-04-03T18:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173595#M321508</link>
      <description>If there are multiple "\" on the line, the I suspect you still just want the last chunk right. That's what the above will do.&lt;BR /&gt;&lt;BR /&gt;And alternative using awk: awk -F\\ '{print $NF}' ZZZ&lt;BR /&gt;&lt;BR /&gt;And if only data up to the first \ needs to be stripped (unlikely):&lt;BR /&gt;&lt;BR /&gt;sed -e 's/^[^\\]*\\//g' x&lt;BR /&gt;&lt;BR /&gt;Hein.</description>
      <pubDate>Thu, 03 Apr 2008 20:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173595#M321508</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-04-03T20:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173596#M321509</link>
      <description>&amp;gt;Hein: And if only data up to the first \ needs to be stripped (unlikely):&lt;BR /&gt;sed -e 's/^[^\\]*\\//g' x&lt;BR /&gt;&lt;BR /&gt;I assumed you could just remove the "g" but that doesn't work.  It seems in your and  Dusan's answer, that "g" isn't needed.</description>
      <pubDate>Fri, 04 Apr 2008 04:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173596#M321509</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-04T04:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sed Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173597#M321510</link>
      <description>The 'g' is ofcourse not needed. &lt;BR /&gt;Sorry. I just cut &amp;amp; paste Dusan first to make sure that worked, then modified.&lt;BR /&gt;&lt;BR /&gt;Hein</description>
      <pubDate>Fri, 04 Apr 2008 05:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-question/m-p/4173597#M321510</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-04-04T05:13:05Z</dc:date>
    </item>
  </channel>
</rss>

