Execute the shell script with Jenkins and execute a command:2Tips:[ADB] $/bin/sh-xe/users/xxxxx/tools/apache-tomcat-8.5.30/temp/jenkins8525959692743554347.sh+ adb shell input KeyEvent 26/users/xxxxx/tools/apache-tomcat-8.5.30/temp/jenkins852595969274
Hell Command Application Exercise
①/ETC/PASSWD 'ETC/PASSWD contains a row for each user account, containing seven fields separated by a colon (":"): Login name, selected encrypted password, Word user ID, Word Group ID, username and comment
Process Control StatementsIn the shell if multiple commands are entered in the terminal, the commands are placed in the background if they are separated by &, and a collection of commands is represented if delimited. Shell allows logical operators
One, pipe and operation controlPipe character |: To pass the output of a file to the following commandgrep: A command used to filter a specified keywordApplication Examples:[[email protected] ~]# ls |wc-l//list How many rows are in the current
First, Shell introductionIi. History of the OrderHistorical command Store path/root/.bash_history, default can hold 1000 commands#history//View specific history commands[[email protected] ~]# echo $HISTSIZE//system built-in environment
In the use of Linux system, we often need to perform some operational analysis of the file, such as sorting the text, to remove weight, to intercept some of the rules of the field. Cut,sort,uniq is easy to use.1.sort: Generally there are three modes,
Format 1:if condition; Then statement; FiFormat 2:if condition; Then statement; else statement; FiFormat 3:if ...; Then ...; Elif ...; Then ...; else ...; FiLogical judgment expression: if [$a-gt $b]; If [$a-lt 5]; If [$b-eq 10] et-gt (>); -lt (=); -
20.5 logical judgments in shell scriptsLogical ExpressionsIn the [] bracket:-lt:=little than less than-le:=little && equal less than equals-eq:=equal equals-ne:=no Equal Not equal to-gt:=greater than greater than-ge:=greater && equal greater than or
8.10 Shell Special Symbol Cut command
: Represents any arbitrary character? : Represents any single character#: Denotes comment characters\ denotes a de-semantic character| Represents a pipe characterThe Cut command is used to intercept a
1. Exit status of the command (1), (Kw:exit status)Each command has an exit state, represented by a non-negative integerStatus code 0 indicates that the command is running without errorsNon-0 Status code indicates a command errorThe range of status
Tag: Class begins with regular expression find parenthesis expression matches between awkRegular expressions and wildcard characters:1. The regular expression is used to match the qualifying string in the file , and the Regex contains the match .
Break and continue can all be used in the loop, but the two functions are a bit different, for example, break is jumping out of the loop, while continue is jumping out of the loop and going on to the next loop, we'll show the difference between the
First, the expression of the blockBecause the shell can not define a two-dimensional array, so can only use one-dimensional array to represent the box, Tetris can be divided into 7 categories, each type of block is composed of four types of small
+ Plus-Minus* Multiply/except* * Sub-party% take-upThese operational symbols need to be escaped in some scenarios. For example, in a wildcard scenarioThe operation must be two brackets or a bracketLet operation does not display the result and
one, pipe and operation controlCat 1.txt |wc-l; Cat 1.txt |grep ' aaa 'Enter the result of the preceding command to the following commandCTRL Z pauses a task, the task is hidden in the background, and the FG can be used to lift the task to the
Shell variable type: (Divided into two categories)Environment variables (global variables) and local variables###### #一般环境变量都为大写 #########Three symbols of the variableNo quotation marks: usually consecutive strings, numbers, paths, etc. can be
The company project used Springboot. Applications that are developed need to be automatically uploaded to the server. Although the current thermal deployment is not fully mastered. First use the shell to simplify deployment.# upload Key Sshloginkey=/
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.