Linux text processing commands Linux has multiple string processing commands, each of which has its own special purposes. Currently, I have learned the following commands: cut usage: cut-d & amp; #39; delimiter (TAB by default) & amp; #39;-ffields (number) grep: usage: grep-[acniv] & amp; #39; regular expression & amp; #3... linux text processing commands Linux has multiple string processing commands, each of which has its own special purposes. currently I have learned the following commands: cut usage: cut-d 'delimiter (TAB by default) '-f fields (number) grep: usage: grep-[acniv] 'regular expression'-I: case-insensitive-v: reverse selection of sort, wc, uniqtr, col, join, paste, expandtr: usage: tr-[ds] col, expand: used to process [Tab] split: cut file usage: split-[bl] filename-B: according to the size, followed by B/k/m-l: according to the number of rows e.g. split-B 200 k ubuntu. isoxargs parameter replacement e.g. find/sbin-perm + 7000 | xargs-n1 ls-lsed: character replacement e.g. sed's/^ h. * o/world/g'e. g. sed-n '1, 3 P' diff: compare the ASCII file diff-[bBi] from-fileto-fileawk by row: process each row in parts: awk 'condition {action} [condition {action}] 'file keyword: NF, NR, FS, BEGIN, ENDNF: total number of parts in each row NR: current row number FS: separator e.g. echo $ PATH | awk 'In in {FS = ':'} {printf "% s \ t", $1}
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.