Today monkey's simple environment configuration, ready to start monkey, but in the Command Control window input Unable to enter the ADB shell, prompted the error "Unknown host service"find the data found that because the computer's 5037 port is
Case ... Esac is similar to the switch ... case statement in other languages, and is a multi-branch selection structure.The case statement matches a value or a pattern, and if the match succeeds, the matching command is executed. The case statement
Recently debugged a script, in one environment, normal operation, in another server environment, the error "BC: Command not foundFind the following problems:The Linux character interface also has the calculator, that is bc!The operating method is
Scripts are afraid of problems before they are executed. Linux provides no need to judge if there is a problem by directly executing the script.[Email protected]]# SH-NVX scripts.shParameters:-N Do not execute script, only check for syntax issues-V
Morning log in the server compiled to run the service-side program, learned that after the command after the character "&", quit the shell, run the command can continue to run. Puzzled the reason, and to search the following online, understand the
Anti-counterfeiting code: Learning without thinking is blind, thinking and not learning is dangerous Test disk alert scripts with Xshell1. Open a centOS6.5 virtual machine and change the network adapter to bridge mode.650) this.width=650; "Src="
OperatorsThe shells use arithmetic operators from the C programming language, in decreasing order of precedence. Math Operators
OPERATOR
DESCRIPTION
++−−
Auto-increment and auto-decrement, both prefix
[Email protected] zuoye]#CatQuansges.SH #!/bin/Bash>file[ ! $#-ge3] &&Echo "Please input three number or more number!"&& exit2||Echo$* >file forIinch$* Do Expr$i +1&>/dev/NULL [ $? -ne0] &&Echo "Input is error"&&Exit Donea=`Cat file|Xargs-n1|Sort-
Shell for LoopThe general format for A for loop is:For variable in listDoCommand1Command2...CommandNDoneA list is a sequence of values (numbers, strings, and so on), each separated by a space. Each time the loop is passed, the next value in the list
The introduction of test statements in Linux can help us improve the efficiency of our tools and reduce the intensity of our work. So this article mainly introduces the introduction and usage of the test statement in the shell script of Linux.I.
Select loopMainly used to create menus, the menu items arranged numerically are displayed on the standard output, and the PS3 indicator is displayed, waiting for the user to enter a number from the user input menu list, execute the corresponding
1. Analog Linnux Login Shell#/bin/bashecho-n "Login:" Read nameecho-n "password:" Read passwdif [$name = "CHT"-a $passwd = "abc"];thenecho "The Hos T and password is right! " else echo "Input is error!" Fi2. Compare two number sizes#/bin/bashecho
I. Description of the Catalogue1.1 Bin General user, executable system built-in commands1.2 Sbin system administrator, executable system built-in commands1.3 Boot boot file directory, start the relevant files are saved in this1.4 Dev Device
ShellThe first type:${parameter%word} minimal truncation of word from behind${parameter%%word} to maximize the truncation of word from the back${parameter#word} minimal truncation of word from the front${parameter# #word} to maximize the truncation
condition Test1. Condition testing: Test [The command test or [can test if a condition is true, if the test result is real, the exit status of the command is 0, if the test result is false,The exit status of the command is 1 (note the exact opposite
Real needs:For some pages that are not real-time, the data changes are not very large pages, we can make this JSP or Freemark page static.Such a benefit, when our service hangs up, through Nginx's agent, we can still access the relevant page.Realize:
Introduction to Shells and scripts
The Gnu/linux Shell is an interactive tool that provides users with the means to start programs, manage files on file systems, and manage processes running on Linux systems.
At the heart of the
Tag: Shell finds the maximum value in an array elementHow does the shell compare the maximum values in all the elements in an array? Such as:array= (111 222 333 444 555 999 888 777 666) How to find the biggest element 999?Idea: Set a value
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.