<?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: vi help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546496#M27475</link>
    <description>PS.....this is what I thought would be the correct way of doing this.&lt;BR /&gt;:587,819w! /work/newfile&lt;BR /&gt;then go back and either dd the lines, or 232dd, neither of which worked.</description>
    <pubDate>Thu, 28 Jun 2001 15:33:32 GMT</pubDate>
    <dc:creator>Ted Flanders</dc:creator>
    <dc:date>2001-06-28T15:33:32Z</dc:date>
    <item>
      <title>vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546495#M27474</link>
      <description>I am new to using vi.  I need to cut some lines out of a file, save them to a new file, and delete them from the original file.  I set nu......its lines 587 to 819 that I need to do this from.  I tried dd to delete lines but it said it wasnt a valid vi command?  It is a .txt file that I am working on, is that why it is an invalid command?&lt;BR /&gt;I am on a HP9000 K220 using HPUX 10.20.  Any help would be appreciated.</description>
      <pubDate>Thu, 28 Jun 2001 15:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546495#M27474</guid>
      <dc:creator>Ted Flanders</dc:creator>
      <dc:date>2001-06-28T15:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546496#M27475</link>
      <description>PS.....this is what I thought would be the correct way of doing this.&lt;BR /&gt;:587,819w! /work/newfile&lt;BR /&gt;then go back and either dd the lines, or 232dd, neither of which worked.</description>
      <pubDate>Thu, 28 Jun 2001 15:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546496#M27475</guid>
      <dc:creator>Ted Flanders</dc:creator>
      <dc:date>2001-06-28T15:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546497#M27476</link>
      <description>See &lt;A href="http://www.jeffw.com/vi/#COPY_TEXT" target="_blank"&gt;http://www.jeffw.com/vi/#COPY_TEXT&lt;/A&gt;</description>
      <pubDate>Thu, 28 Jun 2001 15:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546497#M27476</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-06-28T15:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546498#M27477</link>
      <description>:n,mw file&lt;BR /&gt;will write lines n to m to file..cp the .txt file to just file and try it again.</description>
      <pubDate>Thu, 28 Jun 2001 15:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546498#M27477</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-06-28T15:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546499#M27478</link>
      <description>vi does not care what extension you have on the file.  Unlike windows, this unix command vi, does not care what the filename is. &lt;BR /&gt;dd is a valid command, but maybe you were at the colon (:dd)?  Vi is VERY case sensitive.  For example: the J key merges lines together, while the j key jumps down one line. &lt;BR /&gt;&lt;BR /&gt;To see what line you are on, hit control-G, from within the command mode.  (ie not insert mode, and not with that colon at the bottom of the screen).&lt;BR /&gt;&lt;BR /&gt;Here's yet another way to do this.&lt;BR /&gt;From unix, "vi  myfile  newfile"&lt;BR /&gt;You the h,j,k,l movement keys to go to the starting line.  &lt;BR /&gt;&lt;BR /&gt;"a232yy   &amp;lt;--drop 232 lines into BUFFER a.&lt;BR /&gt;&lt;BR /&gt;:n        &amp;lt;--go to next file&lt;BR /&gt;&lt;BR /&gt;"ap       &amp;lt;--pop the 232 lines into the next file.&lt;BR /&gt;:w        &amp;lt;--save newfile&lt;BR /&gt;:rew      &amp;lt;--rewind back to your first file&lt;BR /&gt;232dd     &amp;lt;--delete 232 lines&lt;BR /&gt;:wq       &amp;lt;--get out&lt;BR /&gt;&lt;BR /&gt;Buffer a?  What's that you say?  Oh, you have a least 26 of these little buffers.  &lt;BR /&gt;&lt;BR /&gt;You can run vi multiple files too.  &lt;BR /&gt;:n  next file&lt;BR /&gt;:rew rewind to first file&lt;BR /&gt;&lt;BR /&gt;One last thing....&lt;BR /&gt;u - is the undo last command key.&lt;BR /&gt;. - is the repeat last command key.&lt;BR /&gt;23. - means repeat last command 23 times.&lt;BR /&gt;:e!  - restores the file to the last time you saved it. &lt;BR /&gt;&lt;BR /&gt;steve</description>
      <pubDate>Mon, 02 Jul 2001 11:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546499#M27478</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2001-07-02T11:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546500#M27479</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Just the following line :&lt;BR /&gt;&lt;BR /&gt;:587,819w newFile.txt&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jul 2001 11:47:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546500#M27479</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-07-02T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: vi help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546501#M27480</link>
      <description>Hi,&lt;BR /&gt;how about:&lt;BR /&gt;&lt;BR /&gt;vi yourfile&lt;BR /&gt;:587,819w myfile&lt;BR /&gt;:587,819d&lt;BR /&gt;:wq&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry</description>
      <pubDate>Mon, 02 Jul 2001 11:55:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-help/m-p/2546501#M27480</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-07-02T11:55:00Z</dc:date>
    </item>
  </channel>
</rss>

