Summary of common Linux command line text processing tools

Source: Internet
Author: User
Common Linux command line text processing tools summary keyword search: the grep keyword specifies that during File-I search, case-n is ignored. the row where the result is displayed.-v is used to display rows that do not contain keywords. column-based text processing: cut-d:-f1... summary keyword search for common Linux command line text processing tools: the grep keyword specifies that during File-I search, case-n is ignored. the row where the result is displayed.-v is used to display rows that do not contain keywords. column-based text processing: cut-d: -f1/etc/passwd/*: separate passwd files, extract the first column */-d to specify the delimiter-f to specify the display column-c to perform column segmentation text statistics based on the character sequence: wc liangwode/* collect liangwode files */-l only count the number of rows-w only count the word book-c only count the number of bytes-m only count the number of characters text sorting: sort liangwode/* sorts liangwode files alphabetically. This command is only applicable to the sorting of letters and numbers, not applicable to Chinese sorting */-r reverse sorting-n sort by numbers-f ignore case-u delete duplicate row text comparison: diff liangwode-1 liangwode-2-I ignore case-B ignore space number variation-u Unified Display information (typically used to generate patch files) text conversion: tr-d "liangwode" <liangwode deletes the specified keyword tr 'A-z'' a-Z' <liangwode converts the case to search for replacement: sed's/linux/unix/g' linuxtest replaces all linux keywords with unix
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.