Each line read by shell from a standard input or script is called a pipeline; it contains one or more commands ), these commands are separated by one or more pipe characters (|.
In fact, there are many special symbols that can be used to
I have heard that dreamhost only supports shell, but it has never been used. It is mainly because it is not very necessary before and has not uploaded many things.
Recently, due to the fact that a large number of files have to be uploaded, the
If there is no body file, use echo to directly extract the body, for example:
Echo "this is content" | mutt-s "this is subject"-A/path/Yourfile abc@local.domain-C bbb@local.domain
If there is a body file, use
CAT/path/contentfile | mutt-s "this
Original article link
Before using sshpass, see
Shell script Automation
Automatic SSH logon methods
1. Automatic ssh/SCP Method =
A is a local host (that is, a machine used to control other hosts );B is the remote host (
My family originally had two turtles, one father and one mother. I brought them back from Qingdao. When I bought them, I asked the stall owner what to eat. The stall owner replied: it is best to use a dedicated feed, said to take out a box of
Reference address:
The information returned by ifconfig includes the IP address, but it is troublesome to obtain the current IP address in shell.
Obtain Method
The formats of ifconfig returned information vary in different systems:[1]
Linux:
Write in the afternoon
ProgramYou must assign the value returned by the shell command to a variable and use the = $ () method.
Soft = $ (grep-I "\ (Software \) token/passcode/." 123.txt | WC-l)
Echo "[+] Total number of soft cards:" $ soft
......
When it comes to shell wildcard (wildcard), it is often used. The following is an example:
#1
[chengmo@localhost ~/shell]$ lsa.txt b.txt c.old#2
[chengmo@localhost ~/shell]$ ls *.txta.txt b.txt#3
[Chengmo @ localhost ~ /Shell] $ ls d *.
Meaning of "2> & 1" in linux shell
Script:
Nohup/mnt/Nand3/H2000G>/dev/null 2> & 1 &
For & 1, it should be file descriptor 1, while 1 generally represents STDOUT_FILENO. In fact, this operation is a dup2 (2) Call. it outputs the standard output to
1. backup_run.sh
Copy codeThe Code is as follows :#! /Bin/sh
# Backup_run
# Script to run the backups
# Loads in a setting file for the user to change
SOURCE =/home/bob/backup. defaults
Check_source ()
{
# Check_source
# Can we load the file
#
Binary comparison operator, which compares variables or numbers. Note the difference between numbers and strings.
Integer comparison
-Eq equals to, for example, if ["$ a"-eq "$ B"]-Ne is not equal to, for example, if ["$ a"-ne "$ B"]-Gt is greater
Dvbbs 7.1 skips the endless loop. The linzi method can only have one management permission, but it is only a beginner's level.
If it is an SQL version, it is difficult to crack the database. In fact, it seems that you only need to capture the
Go home today and browse cnbeta.com as usual to see what is fresh.
So we can see a Windows Power Shell 1.0
Well, I'm very interested in this. After all, the current Windows Shell is too weak. I immediately downloaded and installed it from the
Both $ * and $ @ provide quick access to all parameters, both of which can store all command line parameters in a single variable.
$ * The variable saves all the parameters provided on the command line as a single word and is treated as a single
When writing a shell script, changing the display color of the shell not only changes the user experience of the shell terminal, but also more practical is to distinguish normal output by changing the color of the display content, warning, error,
Preparation: 1. Prepare the rpm file to be installed.2. Write the rpm file to the file list pkg. lst (the file name is optional)3. install. shDirectory structure|-Install. sh|-Pkg. lst|-Readme.txt|-Xxxx. rpm|-Yyyy. rpm|-Installation process: 1. Put
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