A new version of Bash supports one-dimensional arrays. Array elements can be initialized using the notation variable[xx]. Alternatively, the script can use the DECLARE-A variable statement to specify an array, and so on. To refer to an array element
1. Display all Android platforms in the system:
Android list targets
2. Display all AVD (simulators) in the system:
Android List AvD
3. Create AVD (Simulator):
Android Create AVD--name name--target platform number
4. Start
If you are an IT person accustomed to a Windows command prompt, you will feel overwhelmed when you first use the Linux command line. You are familiar with DOS commands that are basically non-existent in Linux. In front of you is a lot of orders to
As we all know, Shell is the main management tool under Linux operating system. In addition to mastering the commands under the shell, the system administrator also needs to master some special characters. These special characters can help your
Basic knowledge of strings
Strings are the most commonly used data types in shell programming (except numbers and strings, and nothing else works), strings can be in single quotes, double quotes, or without quotes. The difference between single and
Usually in the CentOS, Rhel OS, we mostly through the chkconfig to manage services, such as the boot automatic service.Here to introduce a very useful nginx startup script. and simple to use, as follows:
1. Execute the following order:
To implement Linux under the Shell script batch for the specified folder to add a watermark to the picture, first need to install ImageMagick:
Install on CentOS:
Yum Install Imagemagick-y
Install on Debian:
Apt-get Install
In addition to the "If,else" form, there are other forms of "if" statements:
Copy Code code as follows:
if [condition]
Then
Action
Fi
The statement performs an action only if condition is true, otherwise the operation
The request execution time period is usually referred to as "appy times". Refers to the time period when the system VM stabilizes to the VxDs and ring-3 level application software (especially the 16-bit application). For example, at a specific time
First set up a file, very messy, no rule:
A positive sort:
Inverted sort:
Uniq Delete duplicate rows in a file: Use this command to sort the files first.
For file redundancy, as long as all duplicate characters of the file are displayed
In Linux shell programming, date addition and subtraction operations are often used
I used to calculate myself through the expr function, which is troublesome.
In fact, the date command itself provides the addition and subtraction of dates.
Very
Learn shell programming, every time to do a test, always create a file, give permission, file each edit also write a #!/bin/bash, when the test files are more, still have to organize, or move, or delete ... Kiss, don't bother ...
Here are some of
In the shell, if you need to switch users, and then run some commands as a specified user,
For example, you need to write a line of "Oracle_base=/oracle/app" to a. bash_profile file with an ORACLE user.
You can use the following statement
0. IntroductionEncountered in real-world application development: Storing unformatted file data in a database. For traditional formatted data: Ini/json/xml We all have a ready-made class library to implement. What about non-formatted data like this?
The #!/bin/bash# command matches the host execution Module script path and must be placed in the Salt directory under the source hostname modified hostname #salt tt_ld_lm_lc_1 cmd.script salt:// init/rename.sh ' tt_ld_lm_lc_1
Any partition used to 90% send a message to the specified recipient, to 95% on the subject of the message Warning (warning), instructions to send mail program email#!/bin/bash#Updated: 2008-03-03 PM by:leif ([email
if [str1 = str2] When two strings have the same content, the length is trueif [str1! = str2] When string str1 and str2 are not equalIf [-N str1] is true when the length of the string is greater than 0 (string non-null)If [-Z str1] is true when the
1: Script start line #!/bin/bash This line indicates that the script needs to run with the bash shell, regardless of the user's choice of the interactive shell. Because each shell's syntax is very different, this sentence is very important. 2:
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.