August 4, the main learning contents are as follows:First, the tool of extracting text: Less,cat,head,tail,cutII. Tools for analyzing text: Wc,sort,diff,patchSecond, grep and regular expressionsThird, Egrep extended regular expression
I. Tools
1. Text Processing Three Musketeers-sed#sed语法: sed [OPTION] ... {Script-only-if-no-other-script} [Input-file] ...Sed understanding: Is a stream editor, processing one line at a time, processing the currently processed rows stored in the
File:/run/media/kiosk/ca9c-5ce5/11.11/11.5 (1) Page 1 of 3Unit6. Text Processing tool *******1.diff (diff files differ)diff file File1/* Compare two different files-c/* Show surrounding rows-u/* Generate patches according to the same output-R/*
The Text processing library is primarily used for the manipulation of strings, as well as for the processing of textual content.3.1 string-- Common string manipulationSOURCE location in:lib/string.py3.1.1 string ConstantsHere is the string constant
The RichTextBox Control is a text processing control that can both input text and modify text. Compared with the Textbox Control, the RichTextBox Control has more rich text processing functions, not only can the text color and font be set,It also
Basic Linux tutorial-simple text processingIntroduction
This section describes the commandstr(Note that it is not tar ),col,join,paste. The actual section is a continuation of the previous section on commands that can perform pipeline operations, so
[Familiar with Linux] grep \ egrep \ fgrep and regular expression of the text processing tool, egrepfgrep
It is often said that there are three swordsmen for text processing on Linux, grep, sed, and awk. This article gives a detailed description of
Regular Expressions and three Linux text processing tools, three linuxI. Regular Expression 1. Type of matching characters
[A-z]: lowercase letter
[A-Z]: uppercase letters
[A-Z]: small or uppercase letters
[0-9]: Number
[A-zA-Z0-9]: a
Linux text processing tool sort and uniq instance details
Linux text processing tool sort and uniq instance details
Sort: Sorts input rows by key value field, data type option, and locate
Syntax: sort [option] [file (s)]
Main options:
-B. Ignore the
Use of text processing tools sed and awkI. Text Processing Sankey grep: a text filtering tool. For details, see blog article 2 and sedsed (stream editor): A Row editing tool that works perfectly with regular expressions. During processing, the
I. Introduction to grep:
The text search tool performs a row-by-row search on the target file based on the text mode specified by the user to display the rows that can be matched by the mode. The use of regular expressions can achieve powerful text
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.
Three major text processing tools: grep, sed, awk, and grepawk1. Use grep to search for text in a file
Grep can accept regular expressions to generate output in various formats. In addition, it has a lot of interesting options.1. Search for text
Variable ClassificationLocal variable: this variable is only valid locally and invalid for sub-shell. // bin/bashEnvironment variable: valid for both local and sub-shellExport A = 3OrAExportExport // view the current system environment variable
#
9.Linux Command line Text Processing tool • Search text grep based on keyword· grep ' Test ' /etc/passwd keyword search,· Find/-user Test | grep Video Search in the results, Find the output is text, and then grep keyword,• Options: - I. , ignoring
Linux commands for text processing mainly have the cat TAC tail head less more sort uniq cut tr grep sed awk1.cat to view the contents of a fileFormatCat file_name #查看一个文件的内容Cat file1 file2 ... #同时连接查看多个文件的内容Common options-N Display Line number-E
I. Introduction of AWKAho, Weinberger, Kernighan co-developed by three peopleReport Generator, formatted text outputAvailable in multiple Versions: New awk (Nawk), GNU awk (gawk)Mainstream version on Linux: gawk– mode scanning and processing
Liunx Text Processing Basic command is not bypassed by operations engineers, must be familiar with the key commands, they are combined like a door, is the path to the text of the Three Musketeers (Grep,sed,awk) and Shell script programming.Updated
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.