When writing a shell script, the first line to add: #!/bin/bash, because Linux is not only bash a parser, there are other, they have some differences between the syntax, so it is best to add this sentence, tell the system to use this parser.One.
6.5 Shell ArithmeticThe shell allows expressions to be evaluated inside, and can be used in the following ways: (Medium, let, and the declare command with the-i option.)Only fixed-length integers are computed, and overflow is not checked, except
"If syntax test condition judgment Statement" go from: http://lovelace.blog.51cto.com/1028430/1211353 "while for Loop" go from: 78681117for variable in list do Command1 Command2. Commandndone can also be written as: for Var in list; Do read the
00 00 1 ** echo "">/usr/local/Apache/logs/error_log>/dev/null 2> & 1>/Dev/null redirects the output to/dev/null, which is an empty device, that is, ignoring its output.2> & 1 refers to outputting errors to the standard output. If debugging is
Are you still worried that you can only compile the source code in the Ubuntu environment, but cannot directly debug the ADB shell?
The following method can solve your problem:
If your environment already has ADB,
My ADB has been copied to
For more information about EAS, see
Enterprise Unix shell behavior audit system-enterprise audit shell (EAS) and
Use eash to implement shell audit in Linux.
Due to the company's needs, I have performed secondary development based on EAS, and some
Django-based control (running of Web Server shell scripts) Guide
"http://www.w3.org/TR/html4/loose.dtd"> pop up function closeit () { setTimeout ("self. close () ", 10000 )//.. } // --> after 10 second, this page will be
In Linux, the exec function is not a single function, but a function group, which is:
int execl(const char *path, const char *arg, ...);int execlp(const char *file, const char *arg, ...);int execle(const char *path, const char *arg, ..., char *
Options and parameters:
For example, the following command line:./Test. Sh-F config. conf-v-Prefix =/home
We call-f an option. It requires a parameter, that is, config. conf.-V is also an option, but it does not need a parameter.
-Prefix is called a
#! /Bin/shFiles = ""Trcase = ""EXT = ""Opt = No
# Gets called when a conversion failsError_msg (){_ Filename = $1Echo "'basename $ 0': Error The Conversion failed on $ _ filename"}
If [$ #-EQ 0]ThenEcho "for more info try 'basename $ 0' -- help"Exit
In makefile, shell commands are often used, and $ VaR are often used. What is the difference? The difference is big. Do not consider using $ VaR in the command line of the makefile rule to share the variables of makefile with the shell. Here, only
Search for foreign materials:
Source: WinlogonCategory: NoneEvent ID: 1002Description: The shell stopped unexpectedly and assumer.exe was restarted.
1-NVIDIA put out a bad driver "nvtuicpl. cpl "which Windows Update may have placed on your system (C:
Reprinted please famous from: Shi Shang Liu Jing Hong poechantcsdn blog, the original link: http://blog.csdn.net/poechant/article/details/7213209
0. What is macports?
Macports is an open-source project initiated by the open-source community to
Linux shell scripts that safely kill Tomcat processes, as many good script programming skills are used in this script, I would like to share with you;
## Firstly find the process of the tomcat ....Tomcat_process_str = 'ps aux | grep 'java. * Tomcat '
Stream editor is a text processing tool that can process all editing tasks at a time. Instead of directly modifying the file, it copies the text content to the buffer zone and then edits the content it operates on to the buffer zone. If you want to
UsedIf/whileAnd so on;
Test
Command
Test Condition, When the condition isTrueReturns0;
IfTest condition; thenIf[Condition]; then#Note the space,TBDSupported?If 0
......
FiFi
Test
Condition judgment, three types
1) Value
The memory of the android program is divided into two parts: Native and Dalvik. Dalvik is the Java heap we usually call. The objects we create are allocated here, bitmap is directly allocated on native. The memory limit is that native + Dalvik
Shell script Learning (2): conditional statements and loop statements 1. conditional statements
First, when it comes to conditional statements, we have to first talk about the judgment of the conditional expressions. What types of conditional
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