The entry of the shell script

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$*

Shell Scripting Learning

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

Shell script configuration nginx configuration file syntax highlighting

#!/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

Conditional judgment in Shell

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

Linux Shell Script Raiders Note sixth: packaging compression

Linux Shell Script Raiders notesSixth chapter: Packing Compression1, package, unpack [[email protected] program_test]# tar-cf output.tar 11.txt 22.txt 33.txt [[email protected] program_test]# Tar- XF output.tar-c./tar-file///-c Specify which path to

Shell Script Link Collation

Learning Shell Pre-script basics: http://www.92csz.com/study/linux/12.htm Shell Scripting Full Learning: http://blog.chinaunix.net/uid-9078183-id-2436460.html Shell script Programming Common sense: http://www.cnblogs.com/ebusi/archive/2011/02/09/195

Built-in variables for common shell scripting

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

Simple shell----A little exercise in MOS

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

The cut of shell programming

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

Shell of the intranet group Ping

#!/bin/baships=192.168.0Echo-n "Please enter network segment (default is $ips):"Read Network: ${network:= $ips}echo "Network: $network"D_ip_beg=1d_ip_end=254Echo-n "Input the HostIP (default $d _ip_beg $d _ip_end):"Read Ip_beg Ip_end: ${ip_beg:= $d _

Eval in Shell

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

Linux shell scripts execute in other directories

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

Shell learning process 1-How to output A-Z; spaces, line-wrapping conversions

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:

Restarting the Tomcat shell

#!/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 $}

First blog with the first shell script written

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

Linux Experiment--shell Programming

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 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

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, 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

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

Total Pages: 541 1 .... 483 484 485 486 487 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.