To give you illustrator software users to detailed analysis to share the creation of exquisite shell texture tutorial.
Tutorial Sharing:
Well, the above information is small make up to you illustrator of
awk Statistics IP Access times
Now there is a file, the amount of data in the 200多万条 record, want to use the shell of awk to do statistics, the file format is as follows#关键字 #url#ip Address #Test|123|1Test|123|1Test|123|2Test2|12|1Test2|123|1Test2|1
Shell if judge commonly used in the green part, the tail part of the more do not understand. Reproduced from Baidu Library.
[-A file] if FILE existence is true.
[-B-file] True if file exists and is a block-specific file.
[-C file] is true if file
Problem background:
#!/bin/shphp=100;Java=101Language= "PHP JAVA"For Lang in $LANGUAGETodoWhat do you want to do with 100, 101 line-by-row output?Done
Workaround-Numeric string:
#!/bin/sh php=100;Java=101Language= "PHP JAVA" for Lang in $LANGUAGE
The specific script content is as follows:
The code is as follows
Copy Code
$ vim/home/rainbow/sbin/block_attack_ips.sh #!/bin/bash Logfile=/webserver/blog/logs/rainbow_access.log function Check_root () {If [$EUID-ne 0];
Principle and simplicity: recursion, iconv
code is as follows
copy code
#!/bin/sh tgt= "Source_rst" Function Fe_convert () { for file in ' ls $ ' do if [-D $/' $fi Le] then
Example 1
Typical operation, traversing all JS in the directory and using Yuicompressor compression
The code is as follows
Copy Code
For i in ' Find Asset/v2-name ' *.js ';Todoecho "Compress $i"Java-jar
The LS command is used to display which files and folders are in the directoryLsBlue indicates folder White is fileLs-r List the contents of all folders (R = recursive)Ls-l View details including file permissions last modified time size (L for
When you just learned to write shell batches, there is no need to base your logic operations on the basics: arithmetic, here's a simple implementation method in the Linux shell.1. Simple method$ b=$ ((5*5+5-3/2))$ echo $b29In the Linux shell, we can
echo Display in shell script with color display, echo display with color, need to use parameter-EThe format is as follows:For example:Where 41 of the position represents the background, 36 of the position is the color of the wordNote:1, the word
In the shell, $* and [email protected] respectively represent the following meanings:$ A: The name of the script itself$#: Number of positional parameters$*: All positional parameters will be treated as a string[Email protected]: Each positional
When using Jenkins for integrated deployment, when we deploy the generated war packages, we often need to make some backups or suspend the operation of the server, which can be executed directly in Jenkins.1, first install the plug-in SSH Plugin 2
The numerical computation of a variable is like a command.(()), let, expr, BC, $[]Here's a look at the operator of numeric calculations650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8C/92/wKioL1hwVHaicj-lAAEicHK4YyY296.png-wh_500x0-wm_3 -
What the shell means: First, the Shell's English meaning is "shell"; It is relative to the kernel, because it is proposed to be based on the core of a user-oriented form of expression, such as we see a ball, see its shell, rather than nuclear.
I. File systems and Securitychmod commandThe chmod command has two modes, one is the symbol mode, executes the user with the Ugo, executes the permission with the RWX, the other is the absolute mode, uses the different value of the octal different
First, the installation instructions for the CentOS 5 example1, install the necessary development kits [[email protected] ~]# yum install gcc gcc-c++ autoconf automake2. Download phddns-2.0.2.16556.tar.gz to a directory [[email protected] ~]# wget
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service