Learn the use of tuples in the FirstDay, and start learning the use of strings today. The use of strings mainly to master, the format of the string (C language We should all know, Python and C language is not very different), the basic operation of
First, the role:Grep:global serch REgular expression and Print out of the line.A text search tool that matches the target text line by row according to the user-specified pattern (filter condition);Second, common options:grep [OPTIONS] PATTERN [FILE
Sed:stream Editor
Role
Read by line, pattern matching, processing display. By default, the source file is not edited, only the data in the pattern space is processed, and then the pattern space is printed.
Options
-N: Silent mode.
I. Three modes of VIMThere are three modes in vim: edit mode, input mode, last line modeWhen you open a file by using the VIM command, it is in edit mode by default.1. Edit mode--Input modeI: Convert to input mode before the current cursor
Character test:= = Test whether equal, want to wait for true, not equal to False! =: Test whether unequal, not equal to true, and so falseLoop: Enter condition, exit conditionForWhileUntilfor variable in list;Loop bodyDoneFor I in 1 2 3 4
What is Glob? Glob is the file name of the wildcard mechanism, so that document management is more convenient, concise, fast; When you manage files in the future, you can perform a one-time operation, which can quickly improve the work task!To
Text Processing tools:The Three musketeers of text processing on Linux:grep: Text Filter tool (mode: pattern);grep: Basic Regular expression,-e,-fEgrep: Extended Regular expression,-g,-fFgrep: Regular expressions are not supported,-e,-gSed:steam
Vim Editor Our computer's editor is divided into two categories1, Text editorThe text editor edits the pure ASICLL document without any extra modifiers2, Word ProcessorWord processors include Word documents, word processing tools inside WPS, with
Linux Text Processing ToolsWC Print the number of lines, words, and bytescut split text by column Sort Sortsuniq Eliminating duplicate rows
WC print the number of lines, words, and bytesGrammar:WC [OPTION] ... [FILE] ...Options:-l:line count
1. What are the file management commands on Linux, their commonly used methods and their related examples?First, the file Rights Management class commandChown: Changing the file ownerchown [OPTION] ... [OWNER] [: [GROUP]] FILE ...Common Parameters-R:
File system: Hierarchical structure, indexed;/: Original starting point;Inverted tree-like structure;/DEV/PTS/2: Leftmost/indicates root directoryOther/represent path separatorsThe path delimiter for Linux is/window is the \The path to the file is
GNU AWK: The Three Musketeers tool for text processing:grep, SED, awkgrep, Egrep, Fgrep: Text filtering tool; pattern sed: Row editor mode space, hold space awk: Report Builder, formatted text output, and when working with text files, the words in
Vim: Full screen editor, modal editor
Vim mode: Edit mode (Command mode) input mode last line mode
Mode conversion:
Edit-Input: I is converted to input mode before the character of the current cursor. A is converted to input mode after the
GNU awk:Text Processing Three musketeers: Grep,sed,awkGrep,egrep,fgrep: Text Filtering tool: patternSed: line EditorPattern space, hold spaceawk: Report Generator, formatted text outputGawk-pattern scanning and processing languageBasic usage: gawk
Awk is a powerful text analysis tool, with the search for grep and the editing of SED, which is especially powerful when it comes to analyzing data and generating reports. To put it simply, awk reads the file line-by-row, using spaces as the default
To be perfected .....Grep:Linux Text Processing Three musketeers:grep: Text filtering tool;Sed: Text editor (line); stream editorawk: Text report Generator; awk implementation on Linux is gawkGrep:global search REgular expression and Print out of
Linux Command grep Regular Expressionsin Linux there are three swords that deal with text, and what I'm going to say now is the use of the grep regular expression, which is just a notation, as long as the tool supports this notation, The tool can
1. summarize the use of the commands involved in this course and the relevant examples show:Chmod,chgrp,umask,chown,grep,egrep2. summarize basic regular expressions and extended regular ExpressionsFormat:grep [OPTIONS] PATTERN [FILE ...]
Project
Command
Command explanation
Example description
Text View commands
Cat
View the file as text, from the first line to the last line
Command format: Cat [OPTION] ... [FILE] ...-N option with line
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.