Deploying Javaweb projects in Linux virtual machines
What you need:
VMware virtual Machines
CentOS System Mirroring
WINSCP Tools
Pietty tools (or No)
Begin:
After installing the virtual machine, it is best to set up a static IP to facilitate
Question: How does the shell judge a filename to start with a character ~
Solve:
#var = "cn get the length of me"
#$1:parameter 1 to judge the name of the file
Var=$1
Iscn=false
# ${var:0:2} takes the Var substring from the No. 0 character and
Today see a help post ask this thing again, so boring wrote a.
With the awk script, which is that the script interpreter uses/usr/bin/awk instead of/bin/sh
But it's all a script, if you want to.
You can call me this awk script with a shell
Shell string Comparisons
The method of comparison of integers in a Shell and the method of comparing strings, such as equals, not equal to, greater than, greater than or equal, less than, etc.
Binary comparison operator, comparing variables or
Variable permutation command permutation formula substitution reference use backslash implementation reference use single quotation marks with double quotes
variable Substitution
There are four forms of substitution for variable permutationsSyntax
There are two ways you can execute a shell script under Linux:
Note: This article is reproduced from: How to execute shell script under Linux
1, with the shell program execution script: According to your shell script type, choose Shell Program,
http://fhqdddddd.blog.163.com/blog/static/186991542012417104144188/
EchoUse the echo command to display a line of text or a variable, or to enter a string into a file. Its general form is:echo stringThe echo command has many features, the most
Today, when writing a shell script, several commands are strung up to execute, and the previous command fails, and the command is not followed. Google on the Internet, find solutions, using logic and && can.
Here's a summary of how the shell
Under Windows, after using nodepad++ to write the shell script, upload the shell script to the Linux system, execute the shell script on Linux, report the error message, and cannot execute the shell script, the error message is as follows:
-bash:.
http://kingphp.blog.163.com/blog/static/200423244201361632639594/
When you start a program with bash, you can use it after the program, and the implementation program runs in the background;
For example: Emacs &
But if you forget to enter &; but
STEP1: Start the Spark cluster, which is very detailed in the third lecture, after the start of the WebUI as follows:
STEP2: Start the spark Shell:
You can now view the shell situation through the following Web console:
STEP3: Copy the Spark
Shell determines if file/directory is emptyCategory: Linux 2010-05-29 17:06 3512 People read review (0) Favorite report Shell file
At the beginning of the shell, a lot of the internet is not looking for the West looking for.
#判断文件目录是否为空
The first
Export database query results through the Shell to Excel, and send messages to the mailbox #!/bin/bash# through the shell to query the data information and save in Excel, and record the log #data:2018-06-14#name:zhang# Database connection address
About SEDSed is an online editor that processes a single line of content at a time. When processing, the currently processed rows are stored in a temporary buffer called pattern space, followed by the SED command to process the contents of the
RPYC makes it easy to implement remote method calls, while Plumbum can implement a shell-like encoding in Python:The specific implementation code is as follows:server.pyImport rpycfrom rpyc.utils.server import threadedserverfrom plumbum import
Tag: element represents article string output shard for form berThe role of variablesForbidden spaces on both sides of the equals signFor loop#语法一 for variable in value 1 value 2 value 3 : Do block done # #语法二 the for variable '
1. ${ }A more precise range of defined variable names is used for variable substitutionFor example:A=bEcho $ABOriginally intended to replace the result of a $ A and then a B-letter followed, but on the command line, the real result is only replace
#!/bin/bash
#for嵌套for循环
#9 *9 Multiplication Formula
Echo "for 99 multiplication table"
for ((I=1; i
Do
For ((j=1;j
Do
#当 $j less than or equal to $i, the multiplication table is printed on the screen
[ $j-le $i] && echo-n "$i *
Tagged with: Linux centos Shell wildcard8.1shell IntroductionThe shell is a command interpreter that provides human-computer interaction.Supports specific syntax.Each user can have their own specific shell (bash).CentOS7 default bash (Bourne Agin
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