Urgent! When sed processes ultra-large text files (21 GB), the memory is insufficient ..

Source: Internet
Author: User
Urgent! When sed processes ultra-large text files (21 GB), the memory is insufficient .. -- Linux general technology-Linux technology and application information. For details, refer to the following section. I want to extract six specific columns from a table in the database. The current size is 21 GB. Because some of the exported text files also have line breaks in each record, I used the composite command ";" to achieve this. Then extract the target column with the MPs queue and awk. However, after the command is knocked out, the memory consumption soared and the system had to stop. I want to ask if the sed pipeline operation has been damaged when I removed the line feed (more than 80 million records are still removed after the unexpected line feed) in the first step. Is there any good suggestions.
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.