The shell sorting algorithm was first proposed by the D.L shell in 1959, assuming that the elements to be sorted have n, then each insertion sort is not the same as the elements, but goes to an interval.
The shell first sets the interval to N/2,
1 if statement
echo "Please input X"
Read X
echo "Please input Y"
Read Y
If [$x-gt $y]; In the [] condition, there must be a space before the [only space is followed]. Only a semicolon can be available, or there can be no semicolon
Then
echo "
First, install email send program
Copy Code code as follows:
Yum Install SendMail Mutt
Second, install the FTP client program
This script needs to use an FTP client program to upload files to the FTP space, so you must
Shell Script of Linux Basics
1 Shell sciptA program written in the instruction and basic program design structure to complete a complex process
1.1 Program Writing
Copy Code code as follows:
#!/bin/bash
# program:
# This
1shell is an interface between the user and the kernel to interoperate,
2shell commands that can be run include Linux commands, built-in commands, utilities, user programs, shell scripts
3shell characters:
4. Get command help: Man,info.--help
5
This article mainly introduces the Linux bash shell in the variable types of detailed, variable types are divided into local variables, local variables, environment variables, position variables and special variables, etc., the need for friends can
Shell programming often involves the calculation of numerical values, and sometimes it is easy to forget or confuse the scenarios for these calculation commands, which is a summary of commonly used calculations. The main include let, BC, expr, (())
Shell Loop: ForThe number of cycles is fixed=====================Shell:For variable name [in value list]DoLoop bodyDoneC Language:for (initial value; condition; step))DoLoop bodyDone=====================Shell loop: While untilThe number of cycles is
Version 1.0, refer to some articles on the web to be structured. Later intends to continue to revise. Complete a shell development specification that suits you.Last modified: 2017.6.25I. Naming specification 1, version and operating parameters1)
Typically, as a deployment script for an application, the first task that starts is to create a dedicated (dedicated) user and user group for the current app. This script is very easy. Here is a sample of references:#!/bin/shuser=test_usergroup=test_
Shell script automatically adds black malicious attack IPSystem environment: Centos 6.5 X64If we open the SSH 22 port to all the users, then we can see in the/var/log/secure file, where the face is full of malicious attacks of IP, then how can we
When you need to automatically answer the ' yes ' or ' no ' options in your script, you can invoke the Yes gadget with the following syntax:such as (for each query raised during the execution of a command behind a pipeline, send a custom content no
Features of bash in the shellFeatures of bash in the shellOne of the bash features: command line expansion The mechanism of automatically replacing a given special symbol of a command line with another stringDirectory: Command: CD "Built-in
Execute the following command under Hadoop 2.7.2 cluster:Spark-shell--master Yarn--deploy-mode ClientThe following error has been burst:Org.apache.spark.SparkException:Yarn application has already ended! It might has been killed or unable to launch
The test command has three types of test expressions, the first of which is the comparison of numeric values, the second is the comparison of strings, and the third is the testing of files, such as testing the existence of a file.1. Numeric test ,
I. Source of the problemSometimes copy some important data, and then need to check with the original data whether the data is consistent. This requires a checksum.Two. Analysis of the problemThere are several ways to verify the data, and the
Linux version: CentOS 6.7//Can be viewed using lsb_release-aFirst, modify the/etc/mail.rc//on the last side of the line, you can also echo >>Set [email protected]//your own real e-mail addressSet smtp=smtp.exmail.qq.com//In mailbox settings, client
Summary: Chapter Three discusses the two basic operations that are commonly used when writing shell scripts. The fourth chapter introduces about 30 useful tools for processing text files.Chapter III Find and replaceSummary: This chapter discusses
In a shell script, the $ A is typically used to display the name of the script, which displays the path name of the script when not using basenameFor exampleCat test5.sh #!/bin/bash # Testing the $ parameter echo the zero parameter is set
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