The cut of Linux commands

Source: Internet
Author: User

The Cut command is a very useful command I've seen before, and I've only heard it before, and I haven't used it, and recently I've written a PG document. Compile error, generally is a mistake (more documents), and the same document has different errors, in different places to remind,

Then this will give us a lot of trouble to modify the error, and generally this hint of error, the format is very regular, many Linux system files are the same, then for some regular files we can use the Cut command to extract the content we want OH.

If you are prompted with an error:

For us to change the wrong, the information that is useful to us is the file name: line number: Cause of error

Then we'll copy the above error into the Error_make file and execute

Then "Change to: (in order to maintain regularity)

Then execute: cut-d:-F 2,3,7 Error-make | Sort > Error_result

Results

is more clear than the previous figure. After we cut the content sort, will be sorted by the first letter of each line, then the same file different error we can be very convenient to see!

The cut of Linux commands

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.