<?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 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268567#M12008</link>
    <description>Beginner's luck I suppose. Is there anyway to markup text so its viewed as monospace, something like &lt;PRE&gt; in html? I noticed the presence of the leading whitespace was almost indistinguisable.&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 May 2004 14:13:12 GMT</pubDate>
    <dc:creator>Lee Hundley</dc:creator>
    <dc:date>2004-05-05T14:13:12Z</dc:date>
    <item>
      <title>Sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268564#M12005</link>
      <description>I want to delete 1st 2 lines and 1st empty space and last empty space in a text file&lt;BR /&gt;in a script.&lt;BR /&gt;&lt;BR /&gt;ABCDEFG&lt;BR /&gt;-------&lt;BR /&gt;AANHITW&lt;BR /&gt;ABEAWGI&lt;BR /&gt;ABEGIGI&lt;BR /&gt;&lt;BR /&gt;i dont need 1st 2 lines and remove spaces before and after each line.&lt;BR /&gt;does &lt;BR /&gt;sed -e '/ /d' '1,2,$d' infile &amp;gt;&amp;gt; outfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 05 May 2004 12:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268564#M12005</guid>
      <dc:creator>Vanquish</dc:creator>
      <dc:date>2004-05-05T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268565#M12006</link>
      <description>Try this...&lt;BR /&gt;&lt;BR /&gt;sed -e '1,2d' infile | sed -e 's/^ *//' | sed -e 's/ *$//' &amp;gt; outfile&lt;BR /&gt;&lt;BR /&gt;Probably a way to do it with fewer commands, but that worked for me.&lt;BR /&gt;&lt;BR /&gt;The first part removes the first 2 lines, next remove all whitespace at the beginning of each line, then remove all whitespace at the end of each line. Hope that helps&lt;BR /&gt;&lt;BR /&gt;infile:&lt;BR /&gt;&lt;BR /&gt;ABCDEFG&lt;BR /&gt;-------&lt;BR /&gt; AANHITW&lt;BR /&gt;ABEAWGI  (&amp;lt;- 2 whitespaces here)&lt;BR /&gt;ABEGIGI&lt;BR /&gt;&lt;BR /&gt;outfile:&lt;BR /&gt;&lt;BR /&gt;AANHITW&lt;BR /&gt;ABEAWGI&lt;BR /&gt;ABEGIGI&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;diff:&lt;BR /&gt;&lt;BR /&gt;1,4c1,2&lt;BR /&gt;&amp;lt; ABCDEFG&lt;BR /&gt;&amp;lt; -------&lt;BR /&gt;&amp;lt;  AANHITW&lt;BR /&gt;&amp;lt; ABEAWGI  &lt;BR /&gt;---&lt;BR /&gt;&amp;gt; AANHITW&lt;BR /&gt;&amp;gt; ABEAWGI&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2004 12:58:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268565#M12006</guid>
      <dc:creator>Lee Hundley</dc:creator>
      <dc:date>2004-05-05T12:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268566#M12007</link>
      <description>Congrats to Lee on your first itrc linux points and your first bunny.&lt;BR /&gt;&lt;BR /&gt;Keep on foruming.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 05 May 2004 13:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268566#M12007</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-05T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268567#M12008</link>
      <description>Beginner's luck I suppose. Is there anyway to markup text so its viewed as monospace, something like &lt;PRE&gt; in html? I noticed the presence of the leading whitespace was almost indistinguisable.&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 May 2004 14:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268567#M12008</guid>
      <dc:creator>Lee Hundley</dc:creator>
      <dc:date>2004-05-05T14:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268568#M12009</link>
      <description>Lee, unfortunately not at this time.  It has been mentioned a few times, but no joy yet.&lt;BR /&gt;&lt;BR /&gt;If you want, make your suggestion in the 'Forum Issues' thread over in the HPUX/General section.  Thats the home for it!</description>
      <pubDate>Wed, 05 May 2004 19:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sed/m-p/3268568#M12009</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-05-05T19:53:08Z</dc:date>
    </item>
  </channel>
</rss>

