This article is suitable for the basic knowledge of Android system, know what you say the adb shell is what the small white classmate.(mainly in favor of Windows users, believe if you use Linux ... This article may not have been able to help you
Difference between 2.return and exit
Return means returning from the function returned to the main key function to continue execution, the return can be accompanied by a return value, specified by the argument after return, of course, if it
1, "\" usageUsed to turn off the special meaning of its subsequent characters, to restore the character's own meaning, such as: \ \ represents the character \2, "." UsageMatch any single character3, "*" UsageMatches any character, can be a single,
There are three methods to access a file:1. Read. The content of this file can be displayed.2. Write, delete or edit the file.3. Run a shell script or program Users of files can be divided into three types:1. File owner, that is, the creator of the
In the previous basic Linux Shell script study, we talked about if, select, and Case of the process in the Linux Shell script. Here we will introduce the loop and quotation marks of the Linux Shell script control process, the control process
We have introduced the core implementation principles of mainstream double-layer encryption shells,And compatibility, while simplifying the encryption Shell Core with security considerations.The compatibility and security of the encryption Shell
Any shell script you run has access to (inherits) the environment variables accessible to its parent shell. in addition, any arguments you type after the Script Name on the shell command line are passed to the script as a series of variables.
The
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
Like printf in the previous section, the cycle judgment of awk is similar to the cycle judgment Syntax of C language.1. While
I 've been learning Perl, and shell has forgotten about it. Today I wrote a small script to determine the operation when the second variable of the script is not equal to a certain string.
If [$? -EQ 0] & [$2! = "WP"]
Then
: # Omitted
Fi
If the
When installing oralce in Linux, you must first check whether one pair of RPM has been installed. If you check them one by one each time, it will be very troublesome, so a script is simplified.
This script takes only three steps:
1) Save the
1. Execute bash shell:(1) Go to the directory where the shell script is located: CD/root/tmp and execute./test. Sh.
(2) execute shell script:/root/tmp/test. Sh in absolute path mode.
(3) run the script CD/root/tmp bash test. Sh, sh test. Sh, or bash/
Someone in the group asked me that the long data in shell was omitted as [...] |...], how to view the omitted part is the problem encountered when calling OS: getenv (). We have encountered similar problems before, such as string: tokens
These are some messy things. If none of them can be separated into segments, join them together. It should be said that these messy things should be put at the end to get a chapter similar to a glove box, but since most of these messy contents are
[Erlang 0006] record and macro in Erlang we mentioned that record is a compilation function and there is no special data type in Erlang VM. if you want to solve the problem online and sometimes use record in shell, you have two options: 1. construct
When reading the SDK help documentation, I found that the SDK has provided instructions. In this way, you can avoid the File Permission of ADB pull being root.For details, see Docs/GUIDE/developing/device.html.
If you're developing on Ubuntu Linux,
1. The Function Definition Format in shell is:
Function name (){
# Function body
}
The function definition must follow the principle first defined in use, such as defining the function print
#!/bin/shfunction print(){if [ $# -lt 1 ]then print “no
1 case description
A company needs to install a centos operating system on a large number of servers. It is time-consuming and labor-intensive to manually install one. Therefore, it is very important to build a PXE Server. the system server is
[Shell] dataset and difference set of data
Statistical data often requires files A and B. Now you need to know the data in the file, which are shared by A and B, which only appear in file A (or those only appear in file B ). You can use the uniq
BASH Shell simple progress bar small function, bashshell
Not to mention, directly add the script.
# processbar processbar() { local current=$1; local total=$2; local maxlen=80; local barlen=66; local perclen=14; local
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.