The ADB Shell AM command is available on the cmd command line via commands to start activity,boradcast,service, etc., and can be referenced in the following attachments.For example, in the CMD serial port we send the broadcast, the broadcast action
Recently, in the shell, I tried to invoke MySQL's query results, but there was a surprising result.This is the table data in MySQLA SQL statement is stored in this table to separate the statement from the shell for execution.Execution results are
There are a lot of articles on the Internet to teach you to use scheduled tasks, so other nonsense I will not say moreI here directly have sh to do timing, just a little people do not know, must use Nohup, otherwise the user exits terminal, SH task
variables
Declaring variables:DECLARE attribute variable#attribute表示变量的属性, the common properties are as follows:#-I defines the variable as an integer;-a variable is declared as an array variable;-r declares the variable as a read-only
Wildcard characters differ from regular expressions The wildcard is the syntax that bash native supports,A regular expression is a representation of a string, and regular expressions require supported tool support toLanguage settings: Export
In this paper, the basic syntax of the shell is briefly recorded for future use!1. Shell variablesWhen you define a variable name without the dollar sign $, you only need to add the dollar sign before the variable name when using the variable. As1
In the process of writing a shell script, it is believed that you will encounter this scenario:#!/bin/sh#log_1= "xxxxxx" log_2= "yyyyyy" log_3= "zzzzzz" for num in {1..3}do log=log_$num #此时你想把log_1, log_2,log_3, these three variables The
Here is a summary of some of the recent learning shell knowledge pointsBlog Park-Bang Bang sauce Good * * *1. What is a shell(1) The shell communicates the instructions we enter with kernel so that kernel can control the Jiyu hardware to work
Script is an eternal topic, before DOS also have shell programming this said, for example bat file someone write good words, is also instantaneous speed to become tall on. This should take a bigger share of Linux. I saw a garden friend in the garden
Boss let me put the information in the log summary, good trouble, wrote this script to help work.Need to improve: 1. Crawl log time, only the last time, and this script will catch2. Requires two time difference (e.g. 15:23:34 and 23:23:34), not
Very good!!Very good!!DeleteCTRL + D deletes the character at the cursor location equivalent to VIM x or DLCTRL + H deletes the character in front of the cursor, which corresponds to the HX or DH in vim.Ctrl + K Delete all characters after cursor
1, the general user's command prompt is the root command prompt is #2. Each command in bash is separated by semicolons or newline characters, for example$ cmd1; Cmd23, echo each call after the default will add line break, the following can be used
Shell Script Programming---judgment 1. Condition judgment Conditional judgment in Bash is divided into integer judgments, character judgments, and file judgments.
1-1 condition-judged expression: ①[expression] ( Note that the word prefix
1.#!/bin/sh Use the SH program to execute the code below#!/bin/more output the code belowThe code below the #!/bin/executable will be used as input to this program2. * Can be used to match file names, regular matches, as multiplication. * * can also
List of special variables
Variable
Meaning
$
File name of the current script
$n
Arguments passed to the script or function. N is a number that represents the first few parameters. For example,
Variable Description:$$The PID of the shell itself (ProcessID)$!PID of the Shell's last running background process$?End code of the last Run command (return value)$-Flag at a glance using the SET command$*All parameter lists. such as "$*" in the
There are two ways that the JDK comes with the runtime.getruntime (). EXEC () and Processbuilder classes, which are introduced after JDK1.5, and are also recommended by the authorities to abandon the use of runtime. Today in the implementation of
[Linux] shell, the application of anti-quotation marks ('), linuxshellThe quotation mark (') is located at the top of the Tab key of the keyboard and the left side of the key 1. Note the difference between it and the single quotation mark (') on the
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