<?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: Delete empty lines in vi . in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290680#M885963</link>
    <description>Hi Shaikh ,&lt;BR /&gt;&lt;BR /&gt;It's not working .&lt;BR /&gt;&lt;BR /&gt;Bye.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 30 May 2004 04:43:47 GMT</pubDate>
    <dc:creator>chapaya_1</dc:creator>
    <dc:date>2004-05-30T04:43:47Z</dc:date>
    <item>
      <title>Delete empty lines in vi .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290678#M885961</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I have a file with a lot of empty lines ,&lt;BR /&gt;how do i delete them all ?&lt;BR /&gt;&lt;BR /&gt;BYE.</description>
      <pubDate>Sun, 30 May 2004 03:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290678#M885961</guid>
      <dc:creator>chapaya_1</dc:creator>
      <dc:date>2004-05-30T03:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete empty lines in vi .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290679#M885962</link>
      <description>Hi,&lt;BR /&gt;Follow this link for all you vi queries.&lt;BR /&gt;&lt;A href="http://www.vmunix.com/~gabor/vi.html" target="_blank"&gt;http://www.vmunix.com/~gabor/vi.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For this query use &lt;BR /&gt;Eec&lt;BR /&gt;:g/^[ ^I]*$/d      &lt;BR /&gt;First check this in a test file &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 30 May 2004 03:47:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290679#M885962</guid>
      <dc:creator>Shaikh Imran</dc:creator>
      <dc:date>2004-05-30T03:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete empty lines in vi .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290680#M885963</link>
      <description>Hi Shaikh ,&lt;BR /&gt;&lt;BR /&gt;It's not working .&lt;BR /&gt;&lt;BR /&gt;Bye.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 30 May 2004 04:43:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290680#M885963</guid>
      <dc:creator>chapaya_1</dc:creator>
      <dc:date>2004-05-30T04:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete empty lines in vi .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290681#M885964</link>
      <description>If the lines are really empty (no spaces or tabs):&lt;BR /&gt;:g/^$/d&lt;BR /&gt;&lt;BR /&gt;Otherwises:&lt;BR /&gt;:g/^[ X]*$/d&lt;BR /&gt;where X is a TAB character which is difficult to type in the forum.&lt;BR /&gt;&lt;BR /&gt;You may want to use sed i.s.o. of vi.&lt;BR /&gt;&lt;BR /&gt;JP</description>
      <pubDate>Sun, 30 May 2004 06:40:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290681#M885964</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-05-30T06:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete empty lines in vi .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290682#M885965</link>
      <description>And to add an alternative:&lt;BR /&gt;&lt;BR /&gt;# perl -pi -e's/^\s*$/ and$_=""' file&lt;BR /&gt;&lt;BR /&gt;will delete all lines in file "file" that have only blanks&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Sun, 30 May 2004 07:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290682#M885965</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-05-30T07:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delete empty lines in vi .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290683#M885966</link>
      <description>Somewhat esoteric commands, but here is a really simple method:&lt;BR /&gt; &lt;BR /&gt;rmnl &lt;OLDFILE_NAME&gt; | ssp &amp;gt; &lt;NEWFILE_NAME&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;/NEWFILE_NAME&gt;&lt;/OLDFILE_NAME&gt;</description>
      <pubDate>Sun, 30 May 2004 15:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290683#M885966</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-30T15:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete empty lines in vi .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290684#M885967</link>
      <description>cat filename |grep -v "^$" &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Sun, 30 May 2004 19:14:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-empty-lines-in-vi/m-p/3290684#M885967</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-05-30T19:14:44Z</dc:date>
    </item>
  </channel>
</rss>

