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
1. Text Processing-echoEcho-e "\033[40;35m ..."Background color range: 40--4940: Black 41: Crimson 42: Green43: Yellow 44: Blue 45: Purple46: Dark green 47: BaiseFont Color range: 30-3930: Black 31: Red 32: Green33: Yellow 34: Blue 35: Purple36:
A Basic introduction1.awk:Awk is a powerful text analysis tool that is irreplaceable in the processing of text files and generating reports. Awk considers text files to be structured, which defines each input row as a single record, each string in
The grep command in the Grep:linux system is a powerful text-search tool that uses regular expressions to search for text and print matching lines. grep is a lookup filtering tool in which regular expressions find strings that conform to patterns in
Mac Text Processing command sharingMac Text Processing command share table of Contents
1. Sed
1.1. Text Lookup Replacement
1.2. Text insertion
1.3. Text line deletion
1.4. Execute SED script
2. awk
The use of the following tools is based on the simple use of regular expressions on the basis of not understanding the group to attack their own homework.SedSed is a streaming editor, a text editing tool that performs text operations in a behavioral
January 10, 2017, Tuesday Text Processing _ Division _ sorting _ statistics _ line compilationCompilation DeviceText file: tom:23:male:2013/05/06Cut:-D: Specifies the field delimiter, which is the default space-F: Specify the fields to display-F 1,3-
Experience the difficulties and experiences:1. In the course of operation, the Youdao job is to create a opt/forloutest file, and I have established aOpt file, cd opt, but show not a directory, by reading "Linux embedded" this book using mkdir to
Sed:A non-interactive stream editor that modifies the text flowing through it through a variety of transformations and prints the output to the screen without changing the file itself, including deleting, finding, replacing, inserting, adding, or
Written in the beginning, as a college student, can say that IQ and others are not different, the lack of only self-discipline, intermittent learning Linux for more than a year, this time finally determined to learn at once, by the way before the
Gawk is a modified awk by the GNU organization, which has a very good application on the Linux operating system and does not require compiling, more than other languages more concise, highly efficient, and able to interact with the shell, is one of
File system:Rootfs: Root file systemFhs:linux File System Level standardsLS//boot: System boot related files, such as kernel, INITRD, and Grub (bootloader)/dev: Device filesBlock devices: Random devices, random access, data blocks do not matter the
ObjectiveAwk is a powerful report generator, unlike SED and grep, which focuses on how to better display textual information, commonly used with statistics and formatted output. awk acts as a miniature shell with its own set of grammatical
Brief introduction
Awk is a powerful text analysis tool that is particularly powerful when it comes to analyzing and generating reports on data, compared to grep lookup and sed editing. To put it simply, awk reads the file line by row, using a
One, what is awk
awk is a command under Linux, his output of other commands, the processing of the file is very powerful, in fact, he is more like a programming language, he can customize variables, conditional statements, there are loops, there
Handle any type of data in a shell script, using the SED gwak
Automatically process text in a text file ...
=====
SED Editor:
Also known as the Flow Editor (stream editor), it is exactly the opposite of a normal interactive text editor. In an
Several methods of MySQL data export
Some questions from the web are about how to export data from MySQL for use on a local or other database system, and to import existing data into a MySQL database.Data exportThere are several ways to
Several methods of MySQL data export
Some questions from the web are about how to export data from MySQL for use on a local or other database system, and to import existing data into a MySQL database.Data exportThere are several ways to
One, MySQL installationInstall MySQL under CentOS Please open: http://www.centoscn.com/CentosServer/sql/2013/0817/1285.htmlIi. several important directories of MySQLMySQL installation is not as if SQL Server is installed by default in a directory,
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.