1. Ready to work, window can directly import files through Sqlload, Linux, need to have sqlload related software.2. SQL Script (MID_DFDZ.CTL)
LOAD DATAInto TABLE Mid_t0_transTruncateFields TERMINATED by ' |
#!/bin/bash# @author: goooood#[email protected] #对文件名的截取分析 #file= "/dir1/dir2/dir3/my.file.txt" "# left First" " ## left greedy " " * all matches "#以第一个点删除左边echo ${file#*.} #输出: file.txt# Delete the left echo ${file##* at the last point.}
ShellThree ways to do it (not original, forget who's blog) 1: . Filename 1. SOURCE command usage: source FileNameFunction: Reads and executes the commands in the filename under the current bash environment. The filename file can have no "execute
Shell Simple UnderstandingView the current SHELL echo $SHELLTry the first little script: Vim test.sh1 #!/bin/bash2 echo ' I'll be-back ';Note: #!/bin/bash This sentence is bound to add, remember. How to execute the script:1. Give execute permission,
(1) rsync (remote synchronize) is a data synchronization tool that allows you to quickly sync files between multiple hosts via Lan/wan, or use rsync to synchronize different directories on your local hard drive. (2) Rsync is a tool for replacing
First, what is the landing shell? What is a non-landing shell?1. Landing shell means:(1) When the user logs on, enter the user name and password to start the shell;(2) through the command with the--login parameter: The shell launched by Bash--login.2
1. How Shell scripts work The Linux shell script is similar to Windows batch, but it has a lot more powerful features than Windows batch processing. The shell script is actually a stack of shell commands, with syntax such as shell operations,
Shell Working principleWhat is a shell?The shell is a general term for command Language, command interpreter and programming language, which is an interface between the user and the Linux kernel, and provides the user with an interface to use the
a few powerful commandsShare some shell usages and scripts that you may not know about, simple & powerful!Before reading the following sections, it is strongly recommended that the reader open a shell experiment that is not da Lu Huo in the shell
Bash Shell Basic Features II(1) globbingText name wildcard: Meta characters*: matches any character of any length;?: matches any single character;Example: A*b:aab, AB, a123b;A?b:[]: matches any single character within the specified range;Example: [0-
One of the basic features of the bash shellFirst, the Order historyBash records the command that the user executed in the shell session in the buffer, and when it exits normally, it is recorded in the current user's home directory.
First, prefaceIn structured programming, there are three main structures: sequential, branching, and cyclic. This shows the importance of branch judgment.And in shell programming often encountered in the case of judgment, such as: Determine whether
The method of variable passing between awk and Shell awk is a good thing to do with Linux, and it's very handy to work with some text files. under Linux, it's often the case that you deal with the shell , so the variables between awk and The shell
This article mainly uses three scripts to implement the LVS configuration. Script 1:lvs.sh is configured on the load Balancer side, and script 2:realserver.sh is configured on the backend real server server. Script 3:check_lvs.sh is a script used to
Shell Script pros and cons analysisThe shell uses external commands and some of the default tools of the bash shell, so it often calls an external library of functions, so the command cycle is less than the traditional programming language.Therefore,
PackagedTarCpioCompressionZipbz2Example:① Batch compression script: tar-gzip-dir-rm.shImplementation features: Compressed directory under all folders for the same name packaging compressed files (tar.gz), compression after successful deletion;Script
Http://snailwarrior.blog.51cto.com/680306/154704BASH only supports one-dimensional arrays, but there is no limit to the number of parameters.declares an array:declare-a Array(In fact, you don't have to declare it, you assign it directly to the
The Linux shell is much more powerful in programming than Windows batch processing, both in loops and operations. Data types are not comparable. Here's a summary of some of the things that an individual does when it comes to working with arrays.1.
Shell, that is, the hard skin, when the thickness of the shell and its surface rate radius of less than 0.5, known as the "thin shell", the reverse is called "thick shell." Chest armor evolved from shells, shields.In a world of computers that is
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