After the Spring boot project is packaged into an executable jar, for ease of management, we can make a script that manages the steps of starting, stopping, and so on. Instructions for use
Assuming that the script is eventually named App.sh, you can
1. Display Normal string:"It is a test"The double quotes here are completely omitted, and the following commands are identical to the previous instance:It is a test 2. Show escape characters"\" It is a test\ ""The result will be:"It is a
First, System variablesPerform an env, set view system, or environment variable directly at the command line prompt. ENV displays user environment variables, set shows the shell predefined variables and user variables. Can be exported to user
Purpose: To determine whether a file (test.gz.txt) suffix is a zipCorrect command: if [[${filename} =~ ^test.*zip$]]Here are a few things to keep in mind:
use [[]] for its related usage see link 1;
=~ is connected, I am in use, did not pay
Shell Scripting Fundamentals for Programming Basics程序:指令+数据 程序: 算法+数据结构数据:是程序的核心数据结构:数据在计算机中的类型和组织方式算法: 处理数据的方式程序编程风格:过程式 :以指令为中心,数据服务于指令对象式 : 以数据为中心,指定服务于数据shell程序: 提供了编程能力,解释执行How the program is executed计算机:运行二进制指令编程语言:人与计算机之间交互的语言低级编程语言:机器:二进制的0和1
6.5 Shell ArithmeticThe shell allows expressions to be evaluated inside, and can be used in the following ways: (Medium, let, and the declare command with the-i option.)Only fixed-length integers are computed, and overflow is not checked, except
Are you still worried that you can only compile the source code in the Ubuntu environment, but cannot directly debug the ADB shell?
The following method can solve your problem:
If your environment already has ADB,
My ADB has been copied to
TheBash debugger Project (bashdb) lets you set breakpoints, inspect variables, perform a backtrace, and step through a bash script line by line. in other words, it provides the features you have CT in a C/C ++ debugger to anyone programming a bash
Http://coolshell.cn/articles/4990.html
Preface
Do you think you have only done the same procedure as a small toy when you graduated from school?After entering the workplace, even if you have no experience, you can go through the following
Shell function return value, two common methods:Return,Echo
1) Return StatementThe Return Value of the shell function, which can be the same as that of other languages, returned through the return statement.Example:
#!/bin/sh function test() {
Sort
The sort command sorts the rows in the file specified by the file parameter and writes the result to the standard output. If the file parameter specifies multiple files, the sort command connects these files and sorts them as one file.
Sort
After Onda v811 was upgraded to 4.22d, it was successful to use the master to root the machine. Baidu root is a floating cloud. It's worse than the flash master of a small company in Shenzhen!
After root, log on to shell or shell @..., not root @...
Stream editor is a text processing tool that can process all editing tasks at a time. Instead of directly modifying the file, it copies the text content to the buffer zone and then edits the content it operates on to the buffer zone. If you want to
The current user configuration information in the registry is as follows:-----------------------------------------------------------------------------Windows Registry Editor Version
Special characters in Linux Shell
1. braces:
Usage 1: wildcard Extension
Eg: ls my _ {finger, toe} s
This command is equivalent to a combination of the following commands:
Ls my_fingers my_toes
For example: mkdir {usera, userb, userc}-{home, bin,
1. Regular generation.
Search an English article on the Internet today, get a, http://web.eecs.umich.edu /~ Silvio/teaching/eecs598/lectures/lecture10_3.pdf. I guess there should be other PDF addresses. I tried several other addresses, such as
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