Click Back to learn the path of the Linux command line and shell script19.2-gawk Program Advanced FeaturesThe two most widely used command line editors in the Linux world:
Sed
Gawk
1. Gawk Using variablesA common feature of
In order to prevent unscrupulous site crawler crawling articles, hereby identified, reproduced please indicate the source of the article. LAPLACEDEMON/SJQ.Http://www.cnblogs.com/shijiaqi1066/p/3830007.html1 mysqldump Command BackupThe mysqldump
Source: http://www.centoscn.com/CentOS/Intermediate/2013/0817/1334.htmlTime:2013-08-17 17:00Source:QuanpowerAuthor:This site reportClick:24,857 plays one, MySQL installationInstall MySQL under CentOS Please open: http://www.centoscn.com/CentosServer/
Awk:Awk is a powerful text analysis tool, relative to Grep's lookup, the SED editor,Awk 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
Commands to learn in this section:Cat (TAC), More,less,head,tail,cut,sort,uniq,wc,trSkills learned in this section: Directory ManagementFile ManagementDate TimeView textSplit screen DisplayText ProcessingSummary of File management commands:Directory
A regular expression: a regular expression (or regular expression, called re) is a text pattern consisting of ordinary characters (such as characters A through Z) and special characters (called metacharacters). This pattern describes one or more
Shell Script (iii)2. File sorting, merging and segmentation(1) Sort command#-c: The test file is sorted;-K: Specifies the sort field;-M: merges two sorted files;#-n: Sort by number size;-o: Writes output to file;-r: Reverses sorting results#-t:
Article from my personal blog: Linux awk detailed and application1.awkAwk is a powerful text analysis tool that can parse text to generate a data report. Its principle is to read each line of input, and then by the delimiter segmentation (default is
Linux Common commandsCut commandExample: cut-d\| -f1,4 Xx.txt-D denotes Field delimiter-F denotes field fields to be displayed, if separated by fields, (comma) indicates that the corresponding individual fields are displayed, and if-separated to
Text processing commands for Shell scripting Learning notesA. Cut (truncate text characters or field fields)Command format: Cut [option] FileCombined use of 1.-d and-F to intercept fieldsDescription: * denotes delimiter, such as-,:, empty characters,
Brief introductionAwk 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
Brief introductionAwk 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
command difficulty in general, there are simple difficulties, parameters are often used in the work. If it involves some rare parameters also please Baidu or man a bit.sort(Reference learning site: http://www.cnblogs.com/dong008259/archive/2011/12/08
Hive Quick Start
@ (HIVE) [HIVE] (a) Simple introduction
1. Create a table
CREATE table if not exists ljh_emp (
name string,
salary float,
gender string)
comment ' Basic information of a employee '
row format delimited fields terminated by ', ';
2
Preface
In a test that uses Sqoop to import data from the relational database Oracle into hive, a separator problem occurs. There are fields in Oracle that contain \ n newline characters, because hive defaults to ' \ n ' as a newline delimiter, so
Data export1. Use SELECT ... Into OUTFILE ... command to export the data, the syntax is as follows. ' Target_file ' [option];Where the option parameter can be the following options: Fields teminated by ' string ' (character break)fields [optionally]
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.