<?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: help--with sed in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134150#M63485</link>
    <description>hi friend,&lt;BR /&gt;&lt;BR /&gt;to insert some text first line before. use this command line&lt;BR /&gt;&lt;BR /&gt;sed "1 s/^/word_to_insert /" filename&lt;BR /&gt;&lt;BR /&gt;to insert some text lost line before. use this command line&lt;BR /&gt;&lt;BR /&gt;sed "(lost line number) s/$/word_to_insert /" filename&lt;BR /&gt;</description>
    <pubDate>Thu, 24 Jan 2008 07:25:25 GMT</pubDate>
    <dc:creator>H R Dileepkumar</dc:creator>
    <dc:date>2008-01-24T07:25:25Z</dc:date>
    <item>
      <title>help--with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134146#M63481</link>
      <description>Hi all,&lt;BR /&gt;I have a file called fields.txt and i have the following in it as contents &lt;BR /&gt;`cat /ghl`&lt;BR /&gt;echo "debug"&lt;BR /&gt;echo "complete"&lt;BR /&gt;My question is how do i insert some text in the first line before `cat /ghl` using sed.&lt;BR /&gt;And how do i insert after last word in the last line using sed.Please help me guys its urgent...&lt;BR /&gt;Please give the code..thanks in advance..</description>
      <pubDate>Wed, 23 Jan 2008 13:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134146#M63481</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2008-01-23T13:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: help--with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134147#M63482</link>
      <description>If you run this:&lt;BR /&gt;&lt;BR /&gt;sed  "1 s/^/word_to_insert /" filename&lt;BR /&gt;&lt;BR /&gt;You will add "word_to_insert " to the begining of the first line in "filename".&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jan 2008 13:30:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134147#M63482</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-01-23T13:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: help--with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134148#M63483</link>
      <description>BTW karthik, I see in your profile "I have assigned points to   5  of   66  responses to  my questions."&lt;BR /&gt;&lt;BR /&gt;Please keep asigning points. For help about this, see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;</description>
      <pubDate>Wed, 23 Jan 2008 13:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134148#M63483</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-01-23T13:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: help--with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134149#M63484</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# sed -e '1 s/^/_BEGIN_/' -e '$ s/$/_END_/' fields.txt&lt;BR /&gt;&lt;BR /&gt;...using your example, this would yield:&lt;BR /&gt;&lt;BR /&gt;_BEGIN_`cat /ghl`&lt;BR /&gt;echo "debug"&lt;BR /&gt;echo "complete"_END_&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jan 2008 18:59:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134149#M63484</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-01-23T18:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: help--with sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134150#M63485</link>
      <description>hi friend,&lt;BR /&gt;&lt;BR /&gt;to insert some text first line before. use this command line&lt;BR /&gt;&lt;BR /&gt;sed "1 s/^/word_to_insert /" filename&lt;BR /&gt;&lt;BR /&gt;to insert some text lost line before. use this command line&lt;BR /&gt;&lt;BR /&gt;sed "(lost line number) s/$/word_to_insert /" filename&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:25:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-sed/m-p/4134150#M63485</guid>
      <dc:creator>H R Dileepkumar</dc:creator>
      <dc:date>2008-01-24T07:25:25Z</dc:date>
    </item>
  </channel>
</rss>

