Using a Linux client to execute shell scripts to create database initialization database Chinese garbled problem

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

Shell command to find and execute a file

svn

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

Shell Learning 22-shell Function parameters

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

Shell Learning 13-shell echo Command

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

Crontab let Linux execute shell scripts at timed intervals

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

The meaning of shell variable $#,$@,$0,$1,$2 in Linux

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

Linux Learning Notes (eight) shell overview

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

Stty of shell scripts

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

Shell Programming--bash Basics

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

Shell Mutt Msmtp e-mail

cat mail.sh#!/bin/bash#--------------------------------------------------# created:2015-05-04#  author:jimmygong# mail:[email protected]# function:shell mutt msmtp# version:1.0

Five process Control of Linux shell--Select

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

Shell character interception

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

Shell arithmetic operations

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

grep, sed, awk commands in the shell

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

Erlang Access Remote Shell console

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

Error message after shell script execution "/bin/bash^m:bad interpreter:no such file or dire" workaround

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

Linux Bash Shell string extraction, merge by column, and formatted output

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

Bb_black_ Study Notes-(4) Flashing LED shell command

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

QuickStart Shell Scripting (iv)

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/interpreted language, when to use the shell

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

Total Pages: 541 1 .... 121 122 123 124 125 .... 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.