A little bit of learning shell+sql

Meaningless script, big God do not spray/[[email protected] desktop]# vim oraclesh.sh #!/bin/bashclear# function Test_parameter1 () {' echo  ' su - oracle -c  ' Sqlplus /nolog '  name          type  value------------------------------------ ---------

Shell script output diamond and equilateral triangle

ObjectivePractice the shell to improve your logical abilities.ScriptTriangles and diamonds are implemented through several for loops, but can also be used while.Here is the script content:Triangle#!/bin/bashread -p  "Please input the longs:"

Shell redirection Debugging information

Shell redirection Debugging informationFulinux*************************************************************************************************************** ***********************Author: fulinuxReprint statement:

Shell script controls the creation, deletion, startup, shutdown of Tomcat's Docker container

DescriptionMultiple tomcat containers, while starting and shutting down, use pipework control for each Docker container's network management. This script is used to manage the creation, deletion, startup, and shutdown of multiple containers. The

Shell Learning notes-branching statements

One, single branch if statement 1. Syntax formatif Then program fi or if [conditional judgment] then program fiNote: There must be a space between the brackets and the conditional judgments2. Example 1: Determine if the logged on user

Linux Shell crontab EXPDP scheduled Task logical backup

Create SH Script[Email protected] ~]$ VI logicbackup.shAdd script Content#!/bin/sh# ###################################################################Powered by Ironfo# ###################################################################Oracle

Environment settings for the terminal of the Bash shell usage environment: stty

Environment settings for the terminal of the Bash shell usage environment: stty Environment settings for the terminal of the Bash shell usage environment: stty STTY-A Lists all the current stty parameters to INTR: Sending an interrupt

Shell script Programming-structured commands 1

1, Branch statement (1) IF-THEN-FI statement: Format: if Then commands fi When the command command exit status code is $?=0, enter the branch, or continue with the following command.(2) IF-THEN-ELSE-FI statement: Format: if

Monitor Linux Traffic Shell Edition

Want to see the Linux traffic situation in real time, and do not want to go to the third-party tools, you can directly write footsteps run!System: CentOS 6.5Principle: Obtain the flow from the/proc/net/dev, and then by the conversion and divided by

Using shell scripts to build the source lamp environment

#!/bin/bash#auto Install LAMP#by Csy 2015-11-07#Httpd Define PATH

Shell script Programming {1} per day

Variable definition and use$var =value------don't add spaces around the equals sign$echo $var--$var to reference a variable$age = 20--Variable assignment$echo "She is $age"--reference variable in string, ${age}, can distinguish variable

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

The difference between Shell script and different running modes

There are three main ways of running shell scripts in Linux:1. Direct command release: The shell.sh file must have readable and operational (RX) permissions, and then:Absolute path: Use/home/dmtsai/shell.sh to release commands;Relative path: If the

shell--variable self-increment

when writing loops in the Linux Shell , it is often necessary to use the variable's self-increment, now summarize the method of increment of integer variable.As far as I know, in bash, there are currently five ways to do this:1. i= ' expr $i + 1 ';2.

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

Shallow incremental code on-line shell script-Rookie version

1 Descriptionthis Shell script is the first generation of my written version of the Delta Code on-line script, now the code-on-line script has been updated several versions, focus on the technical focus is to visualize the code version of any

Count rows in shell

Today I suddenly wondered how many lines of code I had written recently, and then I used the shell to figure out the most recent code: ? 1 Find/home/chengshuguang/mango-maxdepth 1-name ' *.c '-or-name ' *.cpp '-or-name ' *.h ' |

Array of shell script programming

An array is a set of elements of the same data type arranged in a certain order, that is, a variable of the same type is named with a name, and then the set of the variable is distinguished by a number, which is called the array name, and the number

Shell Getting Started-sort sort

Command: SortOption:-t:-kn Specifies that the order is sorted according to a segment here N represents a number, the range specifies n,n. range from N to n-N in numerical order-R Reverse Order-U go to repeat sort-un numbers are ordered and repeated,

Sort of hill sort (shell sort)

Objective  This blog is based on the blog of the Brothers, the blog address click on it can go in, there are many good blog, my sorting algorithm is from this; some of the concepts of data architecture I will not elaborate on, Wu fan's blog is

Total Pages: 541 1 .... 258 259 260 261 262 .... 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.