In the previous article, we had a simple reference to the pseudo code of the shell or Python dispatch hive, and today we are enriching the pseudocode
http://blog.csdn.net/haohaixingyun/article/details/51821444
Note that in the actual production
Output Effect Format control:\033[0m Turn off all properties\033[1m Set High brightness\03[4m Underline\033[5m Flashing\033[7M Reverse Display\033[8m Hidden\033[30m--\033[37m set foreground color\033[40m--\033[47m Set background color
Format
Spark Interactive scripting is a simple way to learn about APIs and a powerful tool for analyzing data set interactions.
The spark abstract distributed cluster space is called the Resilient Distributed DataSet (RDD) elastic data set.
There are two
Shell IntroductionThe shell is a program written in C and a bridge for users to use Linux. The shell is both a command language and a programming language.Shell script, a scripting program written for the shell.Shell Environment
The Bourne
1 Create a good conversion under Windows and place it under one of the Linux folders. such as: Put the 0816_em.ktr file under the/home/cfj/kettle/testdemo.Note that the database user name and password may need to be changed if it is a job file such
The contents of the log file are as follows:logid=2210608107 worker_id=140610281404160 optime=1452598610.631276 msg=service+not+found+in+share+memory service=Redis_doc_pushThe post-column output is obtained through awk, and the disadvantage is that
Beginners, do not consider the good-looking, high efficiency is not high! Need to meet the needs first! Demand is the first place!grep, SED, awk. Three Musketeers!Learn the shell, need the premise!1.linux System Command Proficiency2. Figure out the
Shell Secript:Differences in execution modes:The./sh execution is performed in the creation of a subroutine that only inherits the environment variables,If the export declares that the subroutine's subroutine will inherit, it will not be promoted to
After I recently changed Ubuntu, I felt dizzy and eye bloat easily. Because I installed eye protection software on Windows, the screen lock will automatically prompt users to rest their eyes at regular intervals. Google hasn't found an
(1) automatically log on to FTP
(2) Place the downloaded file to the specified local directory
(3) determine whether there are any files to be downloaded on the FTP server
#! /Bin/bash# Create a directory with the downloaded file in the format of
Trap allows you to capture signals in the script. The common form of this command is:
Trap name signal (s)
Among them, name is a sequence of operations taken after the captured signal. In real life, name is generally a function specifically used
1. Find the number of times "Linux" appears in the file sample.txt
#! /Bin/bash # How many "Linux" in linux.txt? Grep-o "Linux" linux.txt | WC-lgrep-c "Linux" linux.txt
2. Retrieve the first column (User Name) of/etc/passwd and use "the N
Publicc void setalpha (INT alpha)Alpha range: 0 ~ 255
This method is supported from eclipse3.4.
/*** Sets the operator's Alpha value which must be* Between 0 (transparent) and 255 (opaque ).* * This operation requires the operating system's advanced*
Observe the Oracle database performance. The AWR feature provided by Oracle provides us with a nearly perfect solution. With AWR features, we can extract AWR reports from the database at any time. However, we need to provide some interactive
root@bt:~/test# who --helpUsage: who [OPTION]... [ FILE | ARG1 ARG2 ]Print information about users who are currently logged in. -a, --all same as -b -d --login -p -r -t -T -u -b, --boot time of last system boot -d, --dead
root@bt:~/test# chgrp --helpUsage: chgrp [OPTION]... GROUP FILE... or: chgrp [OPTION]... --reference=RFILE FILE...Change the group of each FILE to GROUP.With --reference, change the group of each FILE to that of RFILE. -c, --changes like
1. Embed shell Variables
1> cdpath: this variable retains some directory information, separated by the colon.
If this variable is set, shell will first find the value saved in this variable when a directory is stored in CD;
If the CD switch
If [-z "$1"]; thenEcho "You did not enter the parameters for executing the shell"Exit;Fi
If ["$1 "! = "JF"] & ["$1 "! = "Token"]; thenEcho "enter the name of the server to be uploaded: JF score, audit by region"Exit;FiCur_year = 'date + "% Y
#! /Bin/sh# The first line is to tell the system who will execute this dumb.
$ ## Number of parameters transferred to the script$ # ID of the current process during script running, often used as the suffix of temporary variables, such as haison. $$!
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service