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------------------------------------ ---------
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:"
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
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
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
STTY-A Lists all the current stty parameters to
INTR: Sending an interrupt
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
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
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
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
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.
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 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
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 ' |
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
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,
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
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