Text processing on Linux "threesome"grep, Egrep, Fgrep: Text Search tool; Search operations on a given text based on "pattern";Regular Expressions: Regular expression, REGEX, a pattern written by a class of special characters and text characters,
Vim EditorText editor, word processor ASCIIFull screen editor, modal editorVim modeEdit mode (Command mode)Input modeLast-line modeMode Conversion:Edit-InputI: Convert to input mode in front of all characters in the current cursorA: After all the
OutlineFirst, what is the vi text editor?Second, vim common mode and switchThird, VIM usage detailedFirst, what is the vi text editor?Text Editor can basically be divided into 2 categories: Full screen editor and line editor, such as SED is the line
I. Introduction to GREP commands and regular expressions1, grep (Global search REgular expression and print out of the line), that is, global searching regular expression and print out the matching row, it is a powerful text Search tool in Linux
Directory/File ManagementDirectory Management:1.ls2.cd3.pwd4.tree: Viewing the directory tree5.mkdir: Create an empty directory-P: Create parent Directory-V: Show the process of creationCommand line expansion:Mkdir-pv/mnt/test/{x/m,y} # creates two
A list of header files for C + +C #include //Set insertion point #include //character processing #include Define error code #include //floating point processing #include //Macros for various operators #include //define constants for
OperatorArithmetic operators+ +--after the first operation to take the value, after the first value after the operationRelational operators= = = can also be a reference typeBitwise operatorslogical operatorsAssignment operatorsThe conditional
Directory? Pre-knowledge? Data type? Extended knowledgeOnePre-knowledgeIf the reader has the basis of other programming languages, such as: C language. You will find that Python does not need to declare its data type when using "variables". Even in
As we all know, in Linux under the "All documents" principle, all the configuration files can be edited and stored in the form of text. Therefore, the ability to manipulate text files determines whether you can responds very well under Linux. Today,
Type of command:Internal command: Command that comes with the shell programExternal command: itself is an independent executable programHow to distinguish internal commands from external commands: Using the "type command"PRINTENV Display Environment
Regular expressionsis a pattern written by a class of characters, many of which do not represent their literal meaning, but rather express control or wildcard functions; a regular expression uses a single string to describe and match a series of
Function name decoration (decorated name) modeThe name decoration of a function (decorated name) is a string that the compiler creates during compilation to indicate the definition or prototype of a function. The link program or other tool sometimes
SED: Data flow editor; Awk: Generator for report textSED basic usage: (stream editor) stream editorLine EditorFull Screen Editor: Vi/vimSED: Memory space (mode space)By default, the source file is not edited, only the data in the pattern space is
Linux System Basics
Terminal: The user interacts with the host, must use the equipment;Physical Terminal: Direct access to the local display and keyboard devices, such as viewing/dev/console[Email protected] ~]# Ll/dev/consoleCRW-------1 root
Bash's built-in string processing tool:String slices:${var:offset:number}Takes a substring of a string;Take the rightmost few characters of the string: ${var:-length}Note: There must be a white space character after the colon;To take a substring
2017-03-23:All commands can be used * *--help to view Help
CD-To-Change directory
Function: Switch directory
Format: CD [catalogue]
Usage
CD ~ Current User Directory
CD/root directory
Cd..
Fortunately in the Marco class to learn Linux, Margo told us to do the best, hope that through these blog to their own learning experience and content of a good record down, also is a review.Grep:global search REgular expression and Print out of the
Vi/vim is the editor that is provided by default for all Unix/linux operating systems. Due to its powerful functions and efficient operation, Vi/vim has become one of the many editing tools that unix/linux users and administrators must master and
Introduction to 1.GREP commands and regular expressions(1). grep (Global search REgular expression and print out of the line), which is a powerful text-search tool in the Linux system, that searches the regular expression globally and prints out the
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.