Today on the Internet to see a web connection average time of the shell command, in their own machine tried, found that can not use, incredibly appear awk:fatal:division by zero attempted such a mistake, Mao's own changed the shell command.Original
in a production environment, it is possible that other administrators or users may modify Hosts.allow to allow more IP landing machines; In order to facilitate unified management, we can modify the Allow and deny files to the default settings when
Installation use
This script is suitable for most bash environments and has been tested in environments such as CYGWIN,UBUNTU14.04,DEBIAN,CENTOS6,MAC-OSX.
1. Dependency
Before using this program, make sure your Linux or Cygwin supports the
This example shows how to read a specific field (field) from a data file in a Linux shell script and manipulate it. For example, suppose the format of the file Employees.txt is {employee-name}:{employee-id}:{department-name}, separated by a colon,
To the users of Photoshop software to explain the detailed analysis of the mobile phone transparent shell repair map Tutorial.
Tutorial Sharing:
Iphone6 Mobile phone shell artwork
The first step: before making a picture I used to
The shell script is so powerful that it always touches the tip of the iceberg.
Shell recursively traverse directory
#!/bin/bashecho "Please input the directory:"Read CdirFor Dir in $ (find $cdir-type D); Todoecho Change to $dirCD $dirLsecho "------
Today, I saw an article with a shell script and a makefile that would automatically download all of the required packages and compile GCC:
The code is as follows
Copy Code
$ # Download the scripts using wget.$
Lattice, as follows:
The code is as follows
Copy Code
[root@myvps1697 201407]# netstat-ntpl|grep sshd|grep-v grep |awk-f: ' {print $} '
In order to solve the problem of space, the 3 of my group have asked all
Character: 12345ABCDESplit into:12345ABCDE
Method
echo 12345ABCDE | Awk-f "' {for (i=1;i
echo 12345ABCDE | Sed ' s/./&n/g '
echo 12345ABCDE | Grep-po '. '
echo "12345ABCDE" | Fold-w1
And then
Please 1000! How many 0 are included in the
Are English abbreviations, know the meaning of English is very good to remember.Unequal-ne (not equal)Greater than-GT (greater than)Less than-lt (less than)Greater than or equal to-ge (greater than or equal)Less than or equal to-le (less than or
Some static page-oriented sites, may not be convenient to generate a sitemap. and in order to speed up seo/seo.html "target=" _blank "> Search engine collection, it is best to take the initiative to do a sitemap, through webmaster Tools to submit or
To get the server IP shell script:
The code is as follows
Copy Code
#!/bin/bashIfconfig | grep ' inet addr: ' | Grep-v ' 127.0.0.1 ' |cut-d:-f2 | awk ' {print '} '
Download Whole Station
WGET-MK
Here's a simple shell program to illustrate.
debian:~/learn/shell# Cat Phonebook
Alice Chebba 973-555-2015
Barbara Swingle 201-555-9257
Liz Stachiw 212-555-2298
Susan Goldberg 201-555-7776
Susan Topple 212-555-4932
Tony Iannino
A few days ago I talked to a few colleagues about a problem: How do you pass an array to the inside of awk for processing in a shell script?
No way was found at that time. Two days ago in the QQ group to discuss awk, the conversation inadvertently
Submit Process Related
View file changes and new files
Add new File
git add Your_file_path
//Add all Files
git add *
//Add a type of file
Simple submission of files
Submit all of your modified files and
By default, Nginx access logs are stored in a file. After a long time, the log content becomes unusually large. It is not conducive to archiving, backup, and analysis of log files. You can run scripts on a daily basis to automatically cut logs and
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.