2 ways to reference and invoke another script file in a shell script

This article mainly introduces 2 methods of referencing and invoking another script file in the shell script, this article introduces the syntax of the two methods, then gives the actual usages and some places to pay attention to, the friend who

How to set up the peanut shell router

Method/Step Port mapping is also called Port forwarding, and some are called NAT, virtual server. Port mapping process just like your home in a Community B building room 2410, your friends to find you, to find the community doorway, do not know

10 useful command line completion examples in Linux _linux shell

In a Linux system, when you enter a command, and then press two times the TAB key, all available commands that begin with the characters you enter are listed. It's not new, maybe you already know. This feature is called the command line complement

Shell piping and execution sequence analysis _linux shell

1. Basic Concepts A, I/O redirection is usually related to FD, Shell FD is usually 10, namely 0~9; b, commonly used FD has 3, for 0 (stdin, standard input), 1 (stdout, standard output), 2 (stderr, standard error Output), the default and keyboard,

Basics of learning shell scripts [graphic]_linux shell

A shell script is essential to day-to-day Linux system management, and if you don't write a shell script, you're not a qualified administrator. At present, many units in the recruitment of Linux system administrators, Shell script writing is a must

awk command, AWK programming language detailed introduction and instance _linux Shell

One, what is awk awk is a command under Linux, his output of other commands, the processing of the file is very powerful, in fact, he is more like a programming language, he can customize variables, conditional statements, there are loops, there

exec and system parsing in the shell

Both exec and source belong to the Bash Internal command (builtins commands), which is entered under bash for man exec or Man source can view all the internal command information. The bash shell commands fall into two categories: external commands

Logon/non-logon, interactive/non-interactive Shell

Login vs. Non-logon Shell: Distinction: Whether you need to enter a username password. Transformation: Non-login can be converted to login using--login Consider the conversion situation, the relatively scientific distinction: neither the password,

Acting as a shell job, writing for UNIX, Linux, and writing foreign shell jobs

Acting as a shell job, writing for UNIX, Linux, and writing foreign shell jobsThis project is designed to create a file synchronizer.1.1 IntroductionMany computer users want to access their files from different machines, the most convenient way is

Haproxy High Availability (and use Shell to write startup scripts)

This time using Haproxy only test the web side of high availability and load balancing, the problem is that Haproxy is a single point, so you also need to keepalived haproxy high availability, the next explanation.Server:*.*.*.*:haproxyTwo HTTPWhat

Shell special symbol Cut Command sort_wc_uniq command tee_tr_split command shell special symbol

Shell Special Symbol Cut command Special symbols* wildcard characters, any of any character? Any one character# comment Characters\ de-Semantic charactersC=\ $a \ $bEcho $c| Pipe characterCat 1.txt |lessCat 1.txt |moreCut intercept stringShow

The 12th chapter of the Linux command line and Shell scripting Encyclopedia uses structured commands

Many programs impose some logical control processes on the commands in shell scripts.Structured commands allow you to change the order in which programs are executed. It's not necessarily in sequence.12.1 using the If-then statementThe following

Linux Shell function return value

Ext.: http://blog.csdn.net/ithomer/article/details/7954577Shell function return value, generally there are 3 ways: Return,argv,echo1) Return statementThe return value of the Shell function, which can be returned by a return statement, as the return

Network configuration and some shell commands at a glance

One, temporary configuration network (IP, gateway, DNS) + permanent configuration1, the Temporary Configuration network IP address command is "ifconfig network card name IP address/24", for example:Ifconfig eth0 192.168.16.253/242. Temporarily

Shell Scripting Raiders (learning notes)--1.2 Echo and printf printouts

1.2.1 Echo's quote questionFor the use of ECHO, note that the special case of single and double quotes is the point. To print "Hello world!" As an example.Echo Hello world!Hello world!Echo ' Hello world! 'Hello world!Echo " Hello world! "

"Focus" Shell Getting Started Tutorial: Process Control (2) The wording of conditional judgment

Section III: The wording of conditional judgmentIf conditional judgment, the "conditional judgment" in the grammatical structure of if can have many forms. The test result is true, just to see if it returns a value of 0.The following 10 types of

getopts command Learning in the Linux shell-implements a script that adds a Yum source

Getopts is a bash shell built-in command that parses a command-line pass in a shell script, passes it to a function, or passes it to a shell script that is passed to another call (option or parameter, which is explained later, getopts only supports

Shell syntax error: unexpected end of file error message

Shell syntax error: unexpected end of file error message if [ -n "$1" ]then echo "111"else echo "222"fiexit 0 Execute sh my. Sh par and prompt syntax error: unexpected end of file. Why? Text editing is a file written in notepad in windows and runs

BASH Shell Quick Start Guide in 10 seconds

It takes some time for BASH Shell to have a complete and in-depth understanding, but sometimes it is necessary to quickly master its basic usage and write simple programs to meet the needs of the project, then you can read the following article,

Differences between console, terminal, virtual terminal, tty, shell, and other concepts

Differences between console, terminal, tty, shell, and other concepts Linux has been used for some time, but I still cannot understand the differences between these concepts. Although I have been using it all the time, many concepts are vague, so it

Total Pages: 541 1 .... 29 30 31 32 33 .... 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.