ADB Shell--helpDescription: More than 4.4 devices can be used to record video, without the need for root access, extremely convenient.E:\WORKSPACE\TAOPARKING\SCRIPT>ADB Shell Screenrecord--helpUsage:screenrecord [Options] Records The device ' s
MySQL partition experimentBrief:I. Partitioning by partition typeII. Administrative Divisionexamples of partitions and non-partitioned tablesfirst, establish the partition to hash partition for example(1), non-linear hash partition1. Test table
Idea: After Nginx starts, there will be a nginx.pid file in the specified location, by judging whether the file exists. Determine if Nginx has been started.#!/bin/bash#this is my first try to test write a shell to control nginx Daemon#History 2015-08
The ":" in the shellActual case: A section of ===> in the HBase script# for releases, add HBase & WebApps to CLASSPATH# Webapps must come first else it messes up Jettyif [-D "$HBASE _home/hbase-webapps"]; ThenClasspath=${classpath}: $HBASE _homefiif
Shell scripts are executed in various ways (source./*.sh,. The difference between./*.sh,./*.sh)Original source: http://blog.csdn.net/dance_rise/article/details/8573560Conclusion One: The/*.sh is executed in the same way as sh./*.sh or bash./*.sh,
The SED command usage for Shell Scripting Learning notesBasic usage of SEDSed:stream EditorLine EditorSED: Pattern space Stores matched text content in pattern spaceBy default, the original file is not edited, only the data in the pattern space is
The expr command takes an arithmetic expression as a parameter, usually in the following form:expr [number] [operator] [number]Because the shell stores variables as characters, the user must ensure that the operand that participates in the
The variables are divided into 2 types: 1 system Variable 2: User-defined variableenv Display system variable set display system variables and user-defined variablesCustom variable rule: a=1 = number cannot have spaces on either sideCan only consist
1. Write a shell procedure named Xunhuan (with a looping statement), as shown in the results of the operation.0102103210432105432106543210765432108765432102. Write a shell process called Cala, which functions as a small calculator that allows you to
ProcessPreface : A process refers to an instance of a program in execution . The new process consists of Fork () with the Execve () when the system call starts , and then execute , know that they have issued exit () until the system calls
Case ... Esac is similar to the switch ... case statement in other languages, and is a multi-branch selection structure.Syntax for Case statements Case inch mode 1) Command1 command2 command3 ; Mode 2) Command1 command2 command3
Escape character#!/bin/Basha=tenecho"Value of A is $a \ n"Replace the escape character with the-e representation, which is not escaped by defaultCommand substitutionThe syntax for command substitution, note is the inverse quotation mark, not the
Unlike a compiled language, shell scripting is an interpreted language.When executing such a program, The interpreter (interpreter) needs to read the source code that we wrote and convert it to the target (object), which is then run by the
Recently engaged in a shell script to start the jar file with a close jar file. I've got a sore egg. It's finally done this evening.In other words, little brother's Linux is just getting started, after all the information has finally been checked.
Method One:
Load OD, using ESP law:After the hardware access breakpoint, run four times, and run to fly, then we run three times, to see a lot of pop here:Retn returned and arrived at Oep:
Method Two:
Direct single-step tracking, tracking
Linux shell reads the file line by line,Read File lines
For
Command replacement
Code block redirection
While
Pipeline operator
Code block redirection
For
IFS=$'\n'for line in `ls -l`do (( count++ ))doneecho $count
Note:
Difference between reverse quotation marks (') and $ () in Shell, shell quotation marks
Someone asked today:
Echo 'echo \\\\\\ W' echo $ (echo \\\\\\\ w) Why is the output different?
This leads to another problem: is there a difference between
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