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