One day a shell command Linux text Operation series-tac,rev command detailed _linux Shell

Description TAC and Rev are not necessarily connected, the only same is that they are "villains". TAC is actually cat's reverse write, cat normal output, the TAC is inverted output, but the last line from the line output, that Rev? Rev is the last

One day a shell command Linux text content Operation series-cut command detailed _linux Shell

Description Cut press the column to split the file and you can specify the delimiters for each column. In cut terms, each column is a field, sometimes the first column, which may be described as the first field. Actual combat: Suppose there is a

Shell script for monitoring disk usage (local + remote) _linux shell

Monitordisk.sh is as follows Copy Code code as follows: #!/bin/bash #Updated: 2008-03-03 PM by:leif (liangliwen@163.com) Email=/usr/local/bin/email /bin/df-h >/tmp/df.txt Use= ' Df-h | Grep-o [0-9]*% | Grep-o ' [0-9]\+ ']

Summary of mathematical calculations in shell _linux Shell

sin

1. Examples of error methods A Var=1+1 Echo $var The result of the output is 1+1, tragedy, hehe b Var=1 var= $var +1 Echo $var The output result is 1+1, still tragic, hehe 2. The correct method 1) using Let Var=1 Let "Var+=1" Echo $var The output

Shell judge file, directory exists or have permission code _linux shell

Copy Code code as follows: #!/bin/sh Mypath= "/var/log/httpd/" Myfile= "/var/log/httpd/access.log" #这里的-x parameter to determine whether $mypath exists and has executable permissions if [!-X "$myPath"]; Then mkdir "$myPath"

The usage of the split function in awk in the Linux _linux shell

The awk function split (S,A,SEP) splits a string s into a awk array a using the delimiter Sep. Set time = 12:34:56Set hr = ' echo $time | awk ' {split ($0,a, ":"); Print a[1]} ' # = 12Set sec = ' echo $time | awk ' {split ($0,a, ":"); Print A[3]} '

Shell implementation to identify the number of physical CPUs, core number _linux shell

How to identify the number of physical CPUs, a few cores, is hyper-threading or multi-core Judge the basis: 1. CPUs with the same core ID are the same core hyper-threading.2. CPUs with the same physical ID are the same CPU-encapsulated threads

Linux command Details useradd command use method _linux Shell

Linux system is a multi-user multi-task operating system, any one to use system resources, users must first to the system administrator to apply for an account, and then the identity of the account into the system. The user's account can help the

Shell practical tip: Quickly remove space in a string _linux shell

In the process of sorting out the word library encountered a problem, some are actually the same keyword with a space, can not be normal to be heavy, then there is no way to quickly remove these characters in the middle of the space? After Baidu

Shell Scripting Nagios plug-in monitor resource occupancy _linux shell

In general, we only need to monitor the program process in the not on it. But this time, the company developed the program, the process is still in, but the deadlock. Lead to a wide range of effects, but even more importantly, do not know where the

Shell Script Array Usage Summary _linux shell

Array as a data structure, in some high-level languages are directly provided and implemented, of course, my shell is also some ha. PS: This article is written because brother B in the group sent a screenshot: My big B elder brother is still

A summary of 6 characteristics of shell custom functions _linux shell

The recent systematic study of the shell function, the overall sense of the root of the other language function is similar, but it also has its own characteristics One, the call function must be defined after the function, or it will be the error

A common mathematical operation instance in shell script programming _linux Shell

This section mainly discusses the mathematical related shell script programming. Addition operations Create a new file "addition.sh", enter the following and give it executable permissions. Copy Code code as follows: #!/bin/bash

The use of single quotes (') and double quotes (") in shell scripts distinguishes _linux shell

When you write a shell script on a Linux operating system, we use the $ symbol in front of the variable to get the value of the variable, usually in the script using the "$param" in a double quote format, but there are also the use of the ' $param '

Using the jquery plug-in extension to identify the type and version of the browser kernel and shell _jquery

Especially in today's various browsers are flying (it is said that only IE is the kernel of the browser there are 200 kinds of). Little brother today wrote a jquery based plug-in extension that identifies the type and version of the browser's kernel

Shell programming realizes haproxy load balanced cluster's startup and shutdown management

#!/bin/bash #-------------------------Haproxy Server Management Shell script------------------------------------------------ #Authors are from JC #time: 2012-10-10 #QQ: 408822635 #from the region Beijng.china. #-------------------------Haproxy

Shell formatted output command printf

The printf command is used to format the output and is an enhanced version of the echo command. It is a finite variant of the C-language printf () library function, and is somewhat different in syntax.Note: printf is defined by the POSIX standard,

Shell Script Debugging methods

We started the Shell Script debugging series, first explaining the different debugging options, and here's how to enable Shell debug mode.After you finish writing the script, it is recommended that you check the syntax in the script before running

"Linux rookie 2" Shell mail Service

Empty shell Mail 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0057.gif "alt=" J_0057.gif "/>1. Meaning of introducing empty shell messagesMail server directly exposed in the network environment, Security will be greatly reduced, so the

Shell basic applications and examples

Shell basic applications and examplesOne$# the number of arguments to the script$* displays all parameters passed to the script in a single string. Unlike positional variables, this option parameter can be more than 9$$ the current process ID number

Total Pages: 541 1 .... 96 97 98 99 100 .... 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.