But shell scripts are readable and writable, and are likely to reveal sensitive information, such as user name, password, path, IP, and so on.
Similarly, sensitive information is leaked when the shell script is run.
SHC is a tool for encrypting
Awk is a very powerful text analysis tool in Linux. In a nutshell, awk reads the file line by row, dividing each row into separate sections with whitespace as the default separator, and then doing a variety of analytical processing.
Basic usage of
I. Issues and needs:
For example, there is a aa.list file that reads:
1 2 3 4A B c D
For script reads a file, I want to read in one row, read one row at a time, like the first time is 1 2 3 4, the second is a B c DBut I wrote this.
For I in "$
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
Requirements: There are two pages in the program for a purpose, and now you need to count the number of visits per minute between the two pages, including total hits, number of successes (status code 200), and number of failures. Then write to MySQL.
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];
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
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
Understand a dialect in the Linux Shell: 2>&12016-11-14 Du Yishu ObjectiveWhen using Linux commands or shell programming, this usage often encounters 2>&1 If it is just beginning to touch Linux, this thing really does not understand, because he has
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 -
(1) Replace one or more spaces in the text with commasThe text reads as follows:# Cat Text1 2 2 3 3 + 4 4 2 4(2) The Shell program code is:# Cat Text | Sed ' s/[' []*/,/g ' 1,2,42,2,3,43,3,44,4,,4,,2,4Script Description:
sRepresents the
3. Bash 's basic features3.1 Historical Command and command completion (1) History command :#history [Options] [history command Save file]① option:-C: Clears the history command;-W: Writes the history command in the cache to the file ~/.bash_history(
Bash featuresTerminal, the interface program attached to the terminal:Gui:kde, GNome, XFCECli:/etc/shellsBashZshFishFeatures of bash:Command line expansion: ~, {}Command aliases: Alias, UnaliasCommand history: HistoricalFile name wildcard:
Loops in any programming language are more than enough, and of course the shell script also has a looping statement, including a for statement, while statement. This article mainly uses the actual use case to illustrate what common use methods and
Variable Description:$$The PID of the shell itself (ProcessID)$!PID of the Shell's last running background process$?End code of the last Run command (return value)$-Flag at a glance using the SET command$*All parameter lists. such as "$*" in the
First, you need to make sure that the results of the shell command execution are $0 or not 0 can only represent the execution of this statement, for example: Execute statement: ADB connect 192.168.XX. XX execution Result: Unable to connect to 192.168
Under BASH2, you can use the ($ ()) combination to obtainVar= ($ (cat/etc/passwd |awk-f ': ' {print $} ' |head-3))Returns the full value of the array:Echo ${var[@]}OrEcho ${var[*]}To take an array of members:echo ${#var [@]}Orecho ${#var [*]}Take a
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
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