There is demand, can let oneself lazy is the real motive force of study. Because the test environment always needs to manually modify the configuration file after building the code, the learning side completes a shell script that can be modified
SortHandle sorting problems.For example: Sort-r/file the rows of file in descending order.Tr:As a simplified version of SED, you can replace another character with one character, or delete some characters.CutSplitting according to the line of the
Thinking of comparing the shell to a script like Python and Java, I gave up when I had the idea. This is too insulting to the shell. (Crying smiley!) )As a programmer, Linux is the most basic requirement. and the shell script will sometimes show its
#shc是一个专业的加密shell脚本的工具. Its role is to convert the shell script into an executable binary file, which is a good solution to the script contains IP, password and so do not want to open the problem.HTTP://WWW.DATSI.FI.UPM.ES/~FROSAL/SOURCES/SHC's
/etc/shells more/etc/shells/bin/sh/bin/bash/sbin/nologin/usr/bin/sh/ usr/bin/bash/usr/sbin/nologin/bin/tcsh/bin/cshECHO-E Related escape character\ \ input \\a Output Warning tone\b Backspace, i.e. delete one character to the left\c Remove line
Overview of the SED tools (streaming editor)Non-interactive, filter and modify text based on pattern matchingLine by row and output the results to the screencan achieve the output of the text, increase, delete, change, check and other operationsSed
1. Generate files of any sizeif=/dev/zero of=junk.data bs=1m count=1recorded 1+0 read- inrecorded the writing of 1+0.1048576 bytes (1.0 MB) copied,0.00219263 sec,478 MB / secIf represents the input file, The of is the output file,the BS size,
(1)Monitoring 80 Ports Write a script to determine whether the 80 port of the machine is open, if you do not do anything, if you find that the port does not exist, then restart the httpd service, the concurrent mail notify yourself. Once the script
#!/bin/bash#created: 2017.07.21#author: molewan#description: help erp app upgrade ########################################################## #脚本说明 ################################## ######################### #a, copy the data that needs to be added
Select usage in the shell:Grammar:#i/bin/bashselect variable in list do you want to execute statement doneExample:#!/bin/bashecho "What is your favourite OS?" Select Var in "Windows" "Linux" "Gnu Hurd" "Free BSD" "Other";d O-echo "You had selected
One or one-D arraysBash supports one-dimensional arrays (which do not support multidimensional arrays) and does not limit the size of arrays.Similar to the C language, the subscript of an array element is numbered starting with 0.Second, define the
In the insert sort, all elements are compared to the previous element, and the position is replaced. So the number of exchanges is the square level of N. In extreme cases, if the smallest element is on the far right, you need to displace each and
1. In Ubuntu, install SSH:sudo apt-get update # to complete system updatescd/etc/init.d/# See if SSH service is installedsudo apt-get install Openssh-server # for installationsudo etc/init.d/ssh Restart # Restart service, others are:
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.