Average connection time in the Shell calculation Web log in CENTOS6

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

Limit IP logon shell script when Linux system exits

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

Linux version of the fast disk upload download shell script

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

Linux reads the specified domain of the data file into the shell script

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,

Photoshop Mobile transparent shell repair Map Tutorial Share

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

Shell traverses all files under the directory and its subdirectories

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 "------

Share a key compile shell script code to install GCC

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.$

Linux shell gets SSH port number method

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

Shell script automatically frees up space script in Linux

System: CentOS 5.xScript content: The code is as follows Copy Code Cat make_room.sh#!/bin/bash#size = ' Df-hp|grep/dev/mapper/volgroup00-logvol00|awk ' {print $} ' |cut-f 1-d ' G 'Size= ' Df-mp|grep/dev/mapper/volgroup00-

Linux Shell collation log let Awstats analysis

System: CentOS 5.xScript content: The code is as follows Copy Code #!/bin/bashFile1=/var/log/nginxFile2=/tmp/robeacc/logFind= ' Find $file 2-name access.log|wc-l 'if [[$find = 1]];thenRm-f $file 2/*FiLs= ' ls-1t $file

Shell one character split in Linux

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

Shell comparison of two decimal size methods

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

Linux uses Shell to generate XML site map scripts

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

Linux Shell Command Learning notes (i)

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

Shell programming based on the difference between single and double quotes _unix Linux

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

Linux shell script to pass an array to the inside of awk to process the _linux shell

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

The command to be memorized in git summary _linux shell

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

SHELL Script Bulk Add Delete user

#!/bin/bash##Read-p "Keyin Add or del:" KeyinFor i in ' seq-w ';d oPassword=user$i ' echo $RANDOM | md5sum | Cut-c 1-5 'Case $keyin inAddif! ID user$i &>/dev/null; thenUseradd user$i &>/dev/nullecho $password | passwd--stdin user$i &>/dev/nullecho

Shell programming 100 lines per day

[Email protected] ~/tscripts $ echo"Hello World!"-bash:!": Event not found[Email protected] ~/tscripts $ echo'Hello World!'Hello World![email protected]~/tscripts $ echo'Hello World!'>>t1.sh [email protected]~/tscripts $ cat t1.sh #!/bin/Bashhello

Shell script for Nginx log cutting

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

Total Pages: 541 1 .... 527 528 529 530 531 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.