Defines a shell script that can create a database from several other SQL files, and initializes the database with a SQL file that contains the initialized data.
Using a Linux client to connect to a Linux server under Windows, after executing the
ReasonOften we need to find some kind of file and deal with it. For example, locate the. svn folder, and then delete it. If you do not use the shell, you can choose to manually delete, provided that there are few such files, but the SVN information
In the shell, arguments can be passed to a function when it is called. Inside the function body, the value of the parameter is obtained in the form of a $n, for example, $ $ for the first argument, and $ = for the second argument ...Examples of
Echo is an internal command of the shell that prints the specified string on the screen. Command format:Echo ArgYou can use echo to achieve more complex output format control.Show escape charactersecho "\" It is a test\ ""The result will be:"It is a
With Crontab you can execute a shell script or a series of Linux commands at a specified time. For example, the system administrator schedules a backup task to run every dayEntry# crontab–eThis allows you to open your personal crontab profile in
printf "The complete list is%s\n" "$$" 24520 the shell itself PIDprintf "The complete list is%s\n" "$!" PID of the last running background process of the empty shellprintf "The complete list is%s\n" "$?" 0 end code of the last Run command (return
First, what is the shell?The shell is a command-line interpreter that provides users with an interface system-level program that sends a request to the Linux kernel to run the program, and the user can start, suspend, or even write some programs
From:http://blog.chinaunix.net/uid-2522786-id-223518.htmlThere are many commands for Unix systems, but there are more ways to use commands skillfully. With the accumulation of experience and observing the practice of learning other users, we can
Create script: Vim test.shScript content: #! /bin/bash # "#!" is a contract tag that tells the system which shell to use to executeecho "Hello world!"Make script Execute permission: chmod +x./test.shExecute script:./test.sh #注意, be sure to
Process control can be handled differently depending on the situation, and the specified program area can be executed repeatedly, demonstrating the productivity of the program. In the bash shell, Process Control can be divided into two main
String interception of Linux is useful. There are eight ways.Suppose there is a variable var=http://www.aaa.com/123.htm.1. # Intercept, delete the left character, leave the right character.echo ${var#*//}where Var is the variable name and the # is
The coffee is too much to drink. I guess I'll have no sleep tonight. Mom, Egg.The arithmetic operation of the shell. There are too many. There are many tools available to download on the Web. This article only selects the commonly used to carry on
grepCommandgrepCommand Basic syntaxgrepThe command is to print matching lines of text, all of which are called Global Search Regular Expression and print out of the line; The basic syntax is as follows:grep[OPTIONS]PATTERN[FILE...]grep[OPTIONS][-e
The Erlang Shell is an interface program that users interact with the Erlang runtime system. In fact, the Erlang VM runs without any shell, as long as the parameter detached is added at startup to get out of the terminal. -detachedStarts the Erlang
In this case, it is usually a shell script written under window and copied to the Linux machine for execution to occur.The reason is:The end of each line under Windows is \n\r, and the end of the file under Linux is \ nThis allows window to write an
Source of demand: The default IP link show command output will output the network card (including the virtual network card) name, MAC address, port status, and other information, but also mixed with some useless information, this time the string
Previous note in the terminal Input shell command to achieve the LED lights and off, as a beginner, has been excited for a while, because finally has a 0 breakthrough. Manual light led always more trouble, or through the program let it go to light
Lee produced, reproduced please specify the source http://blog.csdn.net/hnulwt/article/details/43234977Continue with what you learned last time, this time studying case statements and the function concepts of the shell.Case statementFirst look at
Compiled languagesMany of the traditional programming languages, such as Fortran, Ada, Pascal, C, C + +, and Java, are compiled languages. These languages require that the source code that we have written be converted into a target tag (object
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.