<?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 sed question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sed-question/m-p/2665404#M79715</link>
    <description>hello&lt;BR /&gt;&lt;BR /&gt;i'd like to do this..&lt;BR /&gt;if there's an matching pattern(ff)&lt;BR /&gt;sed insert new line before the pattern and append the left over..&lt;BR /&gt;&lt;BR /&gt;i remember there is a hold space concept in sed, so that we can store patterns and call them.. but i forgot how to do it..&lt;BR /&gt;--;&lt;BR /&gt;&lt;BR /&gt;thx..&lt;BR /&gt;&lt;BR /&gt;original file&lt;BR /&gt;--------------&lt;BR /&gt;aaaffgg&lt;BR /&gt;ddddd&lt;BR /&gt;---------------&lt;BR /&gt;&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;modified file(when ff is the pattern)&lt;BR /&gt;---------------&lt;BR /&gt;aaa&lt;BR /&gt;ffgg&lt;BR /&gt;dddddd&lt;BR /&gt;---------------</description>
    <pubDate>Fri, 15 Feb 2002 04:33:43 GMT</pubDate>
    <dc:creator>eugene_6</dc:creator>
    <dc:date>2002-02-15T04:33:43Z</dc:date>
    <item>
      <title>sed question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed-question/m-p/2665404#M79715</link>
      <description>hello&lt;BR /&gt;&lt;BR /&gt;i'd like to do this..&lt;BR /&gt;if there's an matching pattern(ff)&lt;BR /&gt;sed insert new line before the pattern and append the left over..&lt;BR /&gt;&lt;BR /&gt;i remember there is a hold space concept in sed, so that we can store patterns and call them.. but i forgot how to do it..&lt;BR /&gt;--;&lt;BR /&gt;&lt;BR /&gt;thx..&lt;BR /&gt;&lt;BR /&gt;original file&lt;BR /&gt;--------------&lt;BR /&gt;aaaffgg&lt;BR /&gt;ddddd&lt;BR /&gt;---------------&lt;BR /&gt;&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;modified file(when ff is the pattern)&lt;BR /&gt;---------------&lt;BR /&gt;aaa&lt;BR /&gt;ffgg&lt;BR /&gt;dddddd&lt;BR /&gt;---------------</description>
      <pubDate>Fri, 15 Feb 2002 04:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed-question/m-p/2665404#M79715</guid>
      <dc:creator>eugene_6</dc:creator>
      <dc:date>2002-02-15T04:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: sed question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed-question/m-p/2665405#M79716</link>
      <description>sed -e 's/ff/ff/' &amp;lt; yourfile &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;Note.. no space after the backslash and enter exaclty as above.</description>
      <pubDate>Fri, 15 Feb 2002 14:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed-question/m-p/2665405#M79716</guid>
      <dc:creator>Eric Ladner</dc:creator>
      <dc:date>2002-02-15T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: sed question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed-question/m-p/2665406#M79717</link>
      <description>Hmm.. this reply got munged by the system it seems.&lt;BR /&gt;&lt;BR /&gt;It should be like this:&lt;BR /&gt;&lt;BR /&gt;sed -e 's/ff/BACKSLASH&lt;BR /&gt;ff/' &amp;lt; oldfile &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;Substitue the actual backslash character for the word backslash and make sure there is not a space after it.</description>
      <pubDate>Tue, 26 Feb 2002 23:08:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed-question/m-p/2665406#M79717</guid>
      <dc:creator>Eric Ladner</dc:creator>
      <dc:date>2002-02-26T23:08:58Z</dc:date>
    </item>
  </channel>
</rss>

