shell script parameters can be as many as possible, but only the first 9 can be accessed, using the shift command can change this limit. The parameter starts at the first and ends at the Nineth one. $ A program name$n Nth parameter value, n=1..9$*
Stream Editor Simple usage of SED sed[options] sed cmds files Option –e Connect multiple Edit commands -f Specifies the SED script file name -N prevents input lines from being entered automatically Sed ' 4, $d ' test.in the first 4 lines of the
#!/bin/bash# the script is used to configure the Nginx profile syntax highlighting # I've put Nginx.vim on my server. 172.16.0.1, you can go to the official website to download echo ' Get Nginx.vimbye ' | Lftp
IfIn the-ZTo-DThe meaning2011-09-05 10:30[-A FILE]IfFILEThe existence is true.[-B FILE]IfFILEExists and is a block special file is true.[-C FILE]IfFILEexists and is a word special file is true.[-D FILE]IfFILEexists and is a directory is true.[-E
Processing of parameter processing-shell incoming parameters
$#The number of arguments passed to the script
$*Displays all parameters passed to the script in a single string. Unlike positional variables, this option parameter can be
Think of their own many pictures and code in the last time the hard drive was lost, Heart is the pain ...This simple shell code was placed in a temporary PDF document that was preserved ... Amen... Today want to write a simple database, feel is not
Cut to the Unit of action in the file,according to the conditions you set, cut out some of the contents of the print. Output to standard output and will not be saved to any fileThe-B range determines the range based on the byte-C range according to
Syntax: eval cmdlineEval will scan the back of the CmdLine two times , if after the first scan, cmdline is a normal command, then execute this command;If the cmdline contains an indirect reference to a variable, the semantics of the indirect
egFor example, when running rails's own server under Linux, this command is required rails_evn=production rails S is not a bit verbose, every time to hit so many words, can not tolerate, fortunately, we have shell script help. Create a script of
There are a bunch of host addresses:A.baidu.com...Z.baidu.comHow to extract the. Baidu.com letters from these data, such as: a b...z?When you see the problem, you first think about how to generate the file with a script:Ideas:1. Definition suffix:
#!/bin/bash#1, determine if the service is available 2, do not use restart TOMCAT#*/30 * * * */home/wsm/restart.sh >>/home/wsm/restart.log# Stop tomcatfunction Killtomcat () {pid= ' ps-ef | grep "/home/wsm/bin/tomcat" | grep-v grep | awk ' {print $}
Work fast two years, to Cnblogs also nearly two years, high-touch, but also at least into the program Ape Army.Finally opened the blog (do not laugh, belly ink is too little, are looking at the study of the Great God).I don't know what to
Reprint Please specify: Http://blog.csdn.net/wujysh1. View the values of the environment variables defined by the user shell under the current system.2. Define the value of the variable AK to 200 and display it on the screen.3. Define the value of
Sch encrypts shell scripts 02
Sch encrypts shell scripts 02
I. Introduction
SHC (shell script compiler) is the shell script compiler. Scripts compiled through SHC are not readable for common users. Therefore, if you want your code to implement
Introduction to the ssh "Secure Shell" Protocol
Traditional network service programs, such as ftp, pop, and telnet, are inherently insecure because they transmit passwords and data in plain text on the network, people with ulterior motives can
Gzexe encrypts shell scripts 01, gzexeshell
Gzexe encrypts shell scripts 01
I. Introduction
Most of the time, our script involves some private information, such as the user name, password, or other important information. We use some encryption
Shell programming control structure: expr, let, for, while, until, shift, if, case, break, continue, function, select, exprcontinue
1. expr calculates the integer variable value
S = 'expr 2 + 3'
The operator numbers and parameters must be separated
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