CentOS7.2 using the shell to install oracle12c

1. Install the necessary packages forPkginch 'binutils' 'Compat-libcap1' 'compat-libstdc++-33' 'GCC' 'gcc-c++' 'glibc' 'Glibc-devel' 'Ksh' 'Libaio' 'Libaio-devel' 'LIBGCC' 'libstdc++' 'Libstdc++-devel' 'Libxi' 'libxtst' ' Make' 'Sysstat' Dorpm-qa

Shell parameter processing templates

Save a copy of the template, then use it for simple parameter processing#!/bin/Bash whilegetopts h:ms option #选项后面的冒号表示该选项需要参数 Do Case "$option" inchh)Echo "option:h, Value $OPTARG"#参数存在 the $optargEcho "Next arg index: $OPTIND";; m)Echo "option:

Commands commonly used by the shell

Alias gives the command a nickname$ C= ' Clear 'CD changes the current path$ cd/etc Change the current path to/etc $ CD back home directory $ CD. Go back to the previous level directory $ CD-back to the directory you just went toCP Copy files or

Some uses of shell grep

#1, total number of statistical characters#统计系统中不允许登录的用户数Grep-c ' Nologin '/etc/passwd#2, case-insensitive lookup of all lines of the specified character;Grep-i ' Good ' 9.txt#3, print the line and line number of the specified character;Grep-n "Good"

Fully automated deployment of the shell scripts PXE

#!/bin/bash#2017 -07-21 by Max#config PXE#config Yumif [!-D ~/yum.bak];Thenmv/etc/yum.repos.d/* ~/yum.bakElsemkdir ~/yum.bakmv/etc/yum.repos.d/* ~/yum.bakFiCat

Shell Block comments

Used to write scripts often worried about the big paragraph of the text to My line with "#" to comment, I think the shell is not as smart as C, there are two different ways to annotate. Today I know that I am not smart, I do not see the use of

Environment variables in the shell

Environment variables in Linux include system-level and user-level, system-level environment variables are system variables to be read by every user logged into the system, and user-level environment variables are the environment variables that are

Use of quotation marks in the shell

Three types of quotes in the shellDouble quotation marks (""): the characters in double quotation marks, except $, "," and \ Nonalphanumeric, are interpreted as characters themselves.1 [email protected]:~#echo"$PATH"2 /usr/local/sbin:/usr/ Local/bin:

Shell Two integer judgment size thought version

Like the rigor of the thought logic of the first few linesThe logic is to learn the code creation is own#!/bin/bash#判断两个整数的大小Read-p "Please enter two integers a B:" A B#或者使用a =$1[-Z "$a"]| | [-Z "$b"]&&{echo "The number you entered is zero"Exit

"265" Shell file creation link

Advantages: You can run the corresponding *.sh file in other folders, for example, through the putty will default into the folder, you can put the link file there, you can call directly!Method: Very simple1. Right click on the file to create the

Shell base syntax and monitoring process does not have a restart

transcoding# Dos2unix./test.shPermissions#chmod a+x./test.shGrammarVariableVar= "111"Echo $varEcho ${var}Operationno1=4;no2=5;Let Result=no1+no2echo $result;Self-increment self-reductionLet no++Let no--[] and let similarresult=$[No1 +

Lua invokes shell script

In Lua, Os.execute can execute DOS commands, but returns the system status code, which is the default output.Io.popen () can also execute DOS commands, but returns a file. egCopy the Code code as follows:Local T = Io.popen (' svn help ')Local A =

Shell scripts add users in bulk

Add the appropriate user account to the Linux service and the initial password is "123456". You can specify a list file for all users, and then write a script named uadduser.sh.[[email protected] ~]# vim/root/users.txt //Create a new list file that

A comparison of integers in the shell

-eq equals, such as: if ["$a"-eq "$b"]-ne not equal to, such as: if ["$a"-ne "$b"]-GT greater than, such as: if ["$a"-gt "$b"]-ge greater than equals, such as: if ["$a"-ge "$b"]-lt less than, such as: if ["$a"-lt "$b"]-le less than equals, such as:

The shell file contains

Create a two shell script file. The test1.sh code is as follows:#!/bin/bashurl= "Http://www.cnblogs.com/freescience"The test2.sh code is as follows:#!/bin/bash# use. To reference the test1.sh file. ./test1.sh# or use the following include file code #

Shell Test Command

The test command in the shell is used to check if a condition is true, and it can be tested in three aspects of numeric, character, and file.Num1=100num2=100if Test $[num1]-eq $[num2]then echo ' two numbers equal! ' Else Echo ' two numbers are

Linux shell built-in judgment

Built-in judgment, when successful returns 0, does not successfully return nonzeroTest-judging expression[Judgment expression] Note must be left blank before and afterNumeric operations-eq equals-ne Not equal to-GT Greater than-ge greater than or

Shell Script Combat

Want to write a script, found that all forget, egg pain, while recalling the side of the writing, finally finished, affixed to the following:1#!/bin/Bash2 #Program:3 # can help you quickly redeploy the project4 #History:5# ./ ,/TenShichaogeng First

Insert sort-Hill sort (Shell ' s sort) principle and Java implementation

The hill sort was proposed by D.l.shell in 1959, and the relative direct ranking has been greatly improved. Hill sort is also called narrowing the incremental sortBasic idea:First, the entire sequence of records to be sorted into a number of

Java Shell Sort

The code is as follows:public class Shellsort {public static void Sellsort (Datawrap [] data) {System.out.println ("start sort:"); int length = Data.lengt The h;//h variable holds the variable increment int h = 1;//The maximum value of the increment

Total Pages: 541 1 .... 445 446 447 448 449 .... 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.