awk: report generator, formatted output of text content, i.e. custom output text, displayed on the terminal.AWK has multiple Versions: New awk (Nawk), GNU awk (gawk)Linux uses Gawk,gawk as a mode scan and processing language.Gawk is also a
grep Text Search Tool:grep [options] pattern [file ...] --Pattern Mode: string, Regular expressionMatches the target text row by line , based on the user-specified pattern, and prints the line to which it matches .Pattern Pattern: Filter conditions
The grep command finds a character pattern in one or more files.
If the pattern contains spaces, you must enclose it in quotation marks.
grep Tom /etc/passwd
grep will look in the file for/etc/passwd in Find mode Tom.
The SED software loops through a file or pipe to read a line, processing one line, and outputting one line.
Mode space, the internal SED software is a temporary cache for storing the content read.
Software versionsed --versionGNU sed
1. Delete all whitespace characters in the CENTOS7 system/etc/grub2.cfg file that begin with whitespace at the beginning of the line2. Delete all # and white space characters at the beginning of the line beginning with #, followed by at least one
The Mail Merge function is different from the previously mentioned function of saving all TX documents to the database. The Mail Merge function is to insert specific fields in the database to a specific location in the template document. At the same
1. grep
(1) grep Introduction
Grep: global search Regular Expression and print out the line. Global Search for regular expressions and output suitable rows.
Grep is a powerful text search tool that performs row-by-row search on the target file
[Description]Systaxhighlighter shows how to use a c/c ++ source file to highlight it according to a certain scheme.
[Process]1. Create a QMainWindow as the framework and use a QTextEdit as its centralWidget. The main body of the interface is a text
The latest most common tool for Linux Shell Text ProcessingGuideThis article describes the most common tools for using Shell to process text in Linux: find, grep, xargs, sort, uniq, tr, cut, paste, wc, sed, awk; the examples and parameters provided
Directory address for this book Note: http://www.cnblogs.com/mdyang/archive/2011/06/29/data-intensive-text-prcessing-with-mapreduce-contents.html
Currently, the most effective way to process large-scale data is to divide and conquer it ".
Divide and
Directory address for this book Note: http://www.cnblogs.com/mdyang/archive/2011/06/29/data-intensive-text-prcessing-with-mapreduce-contents.html2.3 execution framework
The greatest thing about mapreduce is that it separates parallel algorithm
Directory address for this book Note: http://www.cnblogs.com/mdyang/archive/2011/06/29/data-intensive-text-prcessing-with-mapreduce-contents.html
2.5 Distributed File System HDFSTraditional large-scale data processing problems from the perspective
This chapter provides a guide for designing mapreduce algorithms. In particular, we show a lot of design patterns to solve common problems. In general, they are:
"In-mapper combining" (merge in map), The combiner function is moved to Mapper,
4.1 sort text
4.1.1 sort rowsIf the command line option is not provided, the entire record is sorted by the order defined by the current locale.In the traditional C locale, that is, the ASCII order.
4.1.2 sort by fieldsThe-k option is followed by a
In Linux, unlike windows, windows can be used for window operations. it consists of many different commands. This article describes the most common tools used in Linux to process text using Shell: find, grep, xargs, sort, uniq, tr, cut, paste, wc,
Advanced Editing Commands: h: Overwrite the contents of the pattern space in the hold space h: Append the contents of the pattern space to the hold space h H Copy/append pattern space to hold space g: Overlay content in the
Disclaimer: The following is only the common options for commands, if you need to learn more about the details of the command, you need to refer to other information.First, cutCut is a selection command that analyzes a piece of data and takes out
Head: View the contents of the file, the first 10 lines of content are displayed by default.Tail: View the contents of a file, which shows the following 10 lines by default.Head and tail if you want to display the contents of the specified number of
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.