Shell string Comparisons
The method of comparison of integers in a Shell and the method of comparing strings, such as equals, not equal to, greater than, greater than or equal, less than, etc.
Binary comparison operator, comparing variables or
Backup strategy:
Make a full standby every Sunday and make an incremental backup every day.
One: Fully-prepared script
Cat xtrabackup_full.sh
#!/bin/bash
Local_ip= "$ (/sbin/ifconfig eth0|grep ' inet addr ' |awk-f: ' {print $} ' |cut-d '-f1)"
Email=
When I was developing Android, I encountered a service component that simply would not require the interface behind the process to silently perform the task. Now let's learn how the daemon service is implemented under Linux, and also learn the
understanding input and outputREDIRECT Error messages
Ls-al badfile 2> test4 redirection errors and data
Ls-al test test2 test3 badtest 2> test6 1> #错误输入到test6, normal data is displayed to Test7 test7 test ls-al &> test2 #将标准错误和 Standard input is
STEP1: Start the Spark cluster, which is very detailed in the third lecture, after the start of the WebUI as follows:
STEP2: Start the spark Shell:
You can now view the shell situation through the following Web console:
STEP3: Copy the Spark
function
If you do not need to develop and modify the Android project configuration file, perform Android lint check, after the inspection, the inspection results under each AAR package from the remote machine copy to the node machine. Source Code
#
Today, I'm going to install the SharePoint Online Management Shell on a new machine, and there are some problems and notes.
First the SharePoint Online Management Shell download Address: https://www.microsoft.com/en-us/download/details.aspx?id=35588
Shell determines if file/directory is emptyCategory: Linux 2010-05-29 17:06 3512 People read review (0) Favorite report Shell file
At the beginning of the shell, a lot of the internet is not looking for the West looking for.
#判断文件目录是否为空
The first
Apache-vhost: Auto-Complete installation, basic configurationComplete the Add work of the virtual host by prompting for the domain name, Web site root, and other informationService httpd Stop &>/dev/nullconf=
Shell's characteristics: input and output redirection and pipingI/O: device, registerI/O portLinux: All FilesName resolutionDocument descriptor (HANDLE): File descriptor, FD is the kernel used to track the current fileInput: standard input,
Enabling the shell option with the shopt built-in command (EXTGLOB) recognizes several extended pattern matching operatorsThe pattern list is by | SegmentationView Shell Options ExtglobShopt |grep ExtglobStart Shell Option ExtglobShopt-s ExtglobTurn
Start a few lines: HeadEnd a few lines: tailMiddle lines: SED1. If you only want to see the first 100 lines of the file, you can use the Head command, such as head-100 filename2. If you want to view the 100 lines of the file, you can use the tail
1.1 Shell Programming Basics 1.1.1 basic knowledge of Shell programmingBe familiar with the VIM editorFamiliar with SSH terminalMaster the common Linux commandsNumber Master Linux regular expressions and Three Musketeers commands (grep, sed,
The simplest output:# datewed June 6 : £20181. Gets the current time, output in the specified format: # date +%y-%m-%d standard output date (where: + must be,-optional, can also be output according to the specified style, for example:/,* 2018 -06 -
1.Scripting purposes Automate the deployment of your environment and combine packages and deployment scripts into one file to avoid scripting and file separation. 2. Experimental Environment(1) Linux EnvironmentCentOS 7.4(2) package[email protected]
Startup script start.sh This script is used to start the project, log logs and PID#!/bin/shprg=" $" #$ A represents the current startup script # Get the true path of the file while[-H"$PRG"]; Dols= ' Ls-ld"$PRG"' link= ' Expr"$ls": ' .*-> \ (. *\) $"
1.Shell determine the user's parametersWhen the system executes the mkdir command, it will judge the information entered by the user, that is, whether the user-specified folder name already exists, if there is an error, and the other is
1 Linux operating system Shell1.1 shell scriptWhen a command is not executed on the command line, but is executed from a file, the file is called a Shell script.Attention:Shell scripts typically use. sh as the suffix, but are not required.The Shell
编程能力:脚本编程 编程语言:机器语言、汇编语言、高级语言 静态语言:(编译型)C语言 C++ JAVA C# 动态语言:(边解释边执行) 面向过程:shell C语言 面向对象:JAVA Python perl C++
Shell weakly typed programming language strong: When variables are used, they must be declared in advance, or even
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.