Steps for deleting a vi Section

Source: Internet
Author: User
Step: Delete a vi Section delete a section is a common operation for editing and analyzing lengthy configuration files or log files. Briefly describe the key points for deleting the vi section. The vi overview citation does not list the last row mode as a single mode. It is not important to separate the command mode from the last line mode... information & vi section deletion step section deletion is a common operation for editing and analyzing lengthy configuration files or log files. Briefly describe the key points for deleting the vi section. The vi overview citation does not list the last row mode as a single mode. It is not important to separate the command mode from the last line mode. Step 1. in the last row mode, use: set nu to display the row number is not required. moving the vi bottom right corner with the cursor will also display the row number. you can correctly find and record the row to delete the start row and the end row. calculate the number of rows to be deleted nn = delete the row number of the end row-delete the row number of the start row + 1 manual calculation ...... It is best not to calculate the error 3. in command mode, enter the ndd cursor to move to the start line of the deletion and enter the ndd. N is the result calculated in step 1. To delete tens of thousands of rows (for example, n = 12399), please blindly press 12399dd Tips: 1. the number of segments must be calculated. 2. when running the ndd command, you must first locate the start line of the deletion and enter the ndd in command mode. 3. you can use u to restore ndd input errors.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.