This article mainly introduces the Linux Shell Script series (v): Mathematical operations, this article explains the use of Let, (()) and [] arithmetic, using expr for arithmetic operations, using BC for arithmetic operations three ways, the need
String-related operations are often involved in the shell batch process. There are a lot of command statements, such as: awk,sed can do various operations of string. In fact, the Shell has a series of operating symbols, you can achieve similar
Introduces a powerful analysis of the network shell script, this script is split from the ezhttp, feel the need to introduce separately.
Screenshot of script run effect:
This script contains features such as:
1, real-time monitoring of any
We can always see in Android development that the log log content of the program is full of screens, and the information that really makes sense to the developer is submerged in the torrent, leaving developers at a loss and seriously impacting
Today, at the start of the MONGO when there was a mistake, my win7 environment.
E:\server>mongo
MongoDB Shell version:2.4.5-pre-
connecting to:test
Mon Sep 13:35:05.335 JavaScript Execution Failed:Error:couldn ' t connect to
server 127.0.0.1:270
The reason to write this article, is because the Internet a lot of articles about the reprint, crontab command of the grammar is wrong, are directly turned, although very simple, but also will waste time Ah, especially for the first time to write
The purpose of this script:
Mainly used to monitor the Linux VPS server load and memory footprint, such as MySQl, PHP-FPM, when the load or memory consumption reached the set value, it will automatically restart the process to avoid downtime.
The
Reprint Address: http://blog.chinaunix.net/uid-25099259-id-3187481.html
VxWorks commands that are commonly used
1. Task-related commandsSP FUNCTION,[ARG1],..., [ARG9]-Start a task, accept up to 9 parameters, default priority 100, stack 20000
I. Standard input commands read and Practice 1, read basic usage[[email protected] day3]# read -p "Pls input tow num:" a1 a2Pls input tow num:1 22. Small Script Example[[email protected] day3]# vim read.shread -p "pls input two number:" var1
(1) The idea of modifying dynamic IP to static IP① back up the Ifcfg-eth0 file before modifying IP② Enter the NIC configuration directory/etc/sysconfig/network-scripts/ifcfg-eth0③ modifying Bootproto=static④ modifying Onboot=yes⑤ Configuring a
There are several ways to bash a shell script, and now make a summary. Suppose we write a good shell script with the file name hello.sh, the file location in the/data/shell directory and have execute permissions.Method One: Switch to the directory
What is the difference between this command and 2>&1 >/dev/null when you find a statement in the shell script that >/dev/null 2>&1 has not previously understood the purpose of this command? The emphasis of these two commands and the shell input and
One, parenthesis, bracket ()1, single parenthesis ()① Command Group. The commands in parentheses will be executed in a new sub-shell sequence, so the variables in parentheses cannot be used by the rest of the script. Multiple commands in parentheses
After learning about powerful text flow processing commands such as SED and awk, the simple string processing often forgets a more efficient and concise method, which is the shell's built-in string processing.1, the judgment and assignment of the
#!/bin/bash#Created by Ley on 2014-11-14#Testing the Paramtersecho "The Compleate list is%s\n" "$$"echo "The Compleate list is%s\n" "$!"echo "The Compleate list is%s\n" "$?"echo "The Compleate list is%s\n" "$*"echo "The Compleate list is%s\n"
Original article link
I. Classification of shell environment variables and differences between set env export:
Set: Display (SET) private variables and user variables included in Shell variables. Shell of different classes have different
Contents1. Shell Introduction1.1. What is shell?1.2. Shell Classification2. Shell syntax2.1. Define Variables2.2. Variable type2.2.1. Character Set Variables2.2.2. Digital constant definition2.2.3. Array2.2.4. System Variables2.3. Operators and
Expr command========
At first, the Bourne shell provided a special command to process mathematical expressions. The expr command allows you to process mathematical expressions on the command line, but is particularly clumsy: $ expr 1 + 5 6 The
This is a consulting report on csdn today. I think it is very practical, and I have never paid attention to shell and the potential of graphics before. So I would like to take a note.
By Martin Streicher, http://sd.csdn.net/a/20110420/296194.html
Csidl description and instructions for use:Csidl indicates the Identifier value of a special folder in Windows Shell. The special folder here refers to the folder defined by Windows Shell, for example, "My documents", "recycle bin ", "Inernet cache
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