To the users of the Llustrator software to explain the detailed analysis of the design of exquisite shell effect drawing tutorials.
Tutorial Sharing:
Okay, the above information is small make up to you
The code is as follows
The code is as follows
Copy Code
[Root@client01 ~]# Cat/etc/init.d/resind#!/bin/sh#created by Teddylu at 2014-12-12#used to startup for resin version 3.1#chkconfig: 345 85 15#set up environment
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,
The company server has been dying for the last two days because of the full memory usage. Really can't stand the old call room to help people to restart, specifically wrote a script to release the memory, of course, this server is not too important,
Every time you build a new SVN version of the library it's always a lot of fun, so write a section of the script to automate the process, the detailed code is as follows:
The code is as follows
Copy Code
#!/bin/bash# by
Script content:
The code is as follows
Copy Code
VI iptables-reset.sh#!/bin/bash#Powered by blog.slogra.comport= ' Iptables-vl|grep Ssh|awk ' {split ($NF, A, ":");p rint a[2]} ' |wc-l 'if [$port = 1];thenecho
Today to their own web site to write shell monitoring, to avoid the site hanging I do not know, the script is to check the status of the Web page and Web Connection time, but also according to their own needs to expand, very powerful.Script
Renamed a Web project, and then modified the Apache configuration to a new directory restart, the following error message appears:
Shell-init:error Retrieving current Directory:getcwd:cannot access parent directories:no such file or directory
This script is used in the common shell syntax of the work, the trivial grammar together can help to deal with work, liberation of manpower.The main common shell knowledge points:
Determine if the parameters exist and determine the number
In determining the size of a value in addition to (()) can be used in the form of [] but can not use;, If statementif Judgment statement; ThenCommandFiIf,else statementsif Judgment statement; ThenCommandElseCommandFiIf Elif statementIf Judgment
Shell Command CollectionCCat Zdd Browse the contents of a ZDD fileCat Zdd1 Zdd2 Browsing the contents of multiple filesCat-n ZDD Browse the contents of a file Zdd and display line numbersCD back to the start directory, that is, just logged into the
1 single quotation marksSingle quotation marks can be used to restore the literal meaning of characters, to implement the function of shielding metacharacters, single quotes must be used in pairs[Email protected]~]# echo ' $JAVA _home 'Special
2. character intercept commands2.1 Cut field Fetch command (grep fetch row, cut fetch column )(1) Cut command:#cut [options] File nameOption:-F Column Number: Extract the first few columns;-D delimiter: Splits columns by the specified delimiter,
PS: This iptables script is good, very practical, according to the actual application changes can be used by themselves. Share it for everyone to reference. Original author Anonymous. The source code is as follows:#!/bin/sh#Modprobe
Position variable.$ $ Gets the file name of the currently executing shell script.[Email protected] ~]# vim 0.sh[email protected] ~]# cat 0.shEcho[[Email protected] ~]# sh 0.sh0.sh[Email protected] ~]#
If I put it in the full path, it will.
The shell command can be executed directly in awk.[Plain]View PlainCopy
[Email protected]:~$ Touch A
[Email protected]:~$ Touch b
[Email protected]:~$ cat A.txt
A
B
[Email protected]:~$ awk ' {cmd= ' rm ' $0;system (CMD)} ' A.txt
At work, you sometimes need to compare whether the files are consistent. You can use the following script (relatively simple): share it and hope to help friends who have the same requirements ~ The code is as follows:Copy code #! /Bin/bash#
Replacing File content in Centos in batchesThese two Angels used the locomotive to collect some data because they generated a lot of SQL files. I want to replace the fixed content in each SQL file with another content.Manual file configuration
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