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
1. ExercisesFind all files with the suffix. txt in the/123 directory
Bulk Modify. txt to. txt.bak
Package all. bak files into 123.tar.gz
The name of the batch restore file, that is, to remove the added. Bak again
2. Exercise
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
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,
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
Contact Linux in the sophomore time, then fascinated by the embedded Linux, the computer replaced with Linux system, learning the basic knowledge of Linux, learning Linux commands, learning shell, bubble forum, so slowly the normal work of learning
In the shell script, the variable definition, the reference each has the different way, in addition, very commonly has the file attribute judgment, the logical operation, the numerical operation and so on, the following record their attribute
1. In most cases, UNIX system commands accept input from your terminal and send the resulting output back to your terminalThe list of REDIRECT commands is as follows:2. Output redirection: Redirects are generally implemented by inserting specific
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
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
1.1 String test operatorThe string test operator has the function of comparing whether two strings are the same, whether the length of a string is zero, whether the string is null (NOTE: Bash distinguishes between 0-length strings and empty strings,
Break:Berak statements are usually used in loop statements and switch statements, and when the break statement is used in a do-while, for, and while Loop statement, the program terminates the statement following the loop. Usually the break
1. String length:Var=123abc456echo ${#var}9expr length $var 92. Specify character interceptionEcho ${var:5} #截取前五个字符c456echo ${var:2:5} #截取第2到第5个字符3abc4echo ${var: 3} 3 characters after intercept (with space on the left) 4563. Interception of
A few days ago, a classmate in the group to raise an egg problem, the original question is as follows:There was a basket of eggs,One 1, just take it out.2, 2, take it, just finish it.3, 3, take it, just finish it.4 of 4, 2 left.5 of 5, 4 left.6, 6,
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