Use the shell to import a certain format TXT file into the database via SQL load

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

Shell percent, ##,#,% usage

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

Shell three execution modes (simple parameter description)

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

Little Ant learns Linux (9)--shell Basics and bash basic features

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,

Shell command (ii) The art of Rsync

(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

Linux Learning-Shell Basics-Bash basic features

   Historical command  History-C Clear-W Write ~/.bash_historySave 1000 By default, can be modified in /etc/profileCall      TAB completioncommands, directories, files Command aliasesAlias aliases = ' Original command 'Command execution

Shell's operating mode

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

Linux Shell Programming Summary

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,

Linux Learning Path-shell working principle

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

You may not know the shell

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

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 shell

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.

The IF statement for the shell script

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

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

Load Balancing Lvs--shell script configuration LVs

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

#每日Linux小练习 #06 Shell Script Note Summary

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,

Shell-Packaging, compression, and decompression instructions summary

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

Linux Shell Programming (3): arrays

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

Reprint Shell Array Learning

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.

Talking about "Shell" (i.)

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

Total Pages: 541 1 .... 297 298 299 300 301 .... 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.