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

Linux--Shell programming

Linux--Shell programming one, regular expression 1, regular expression PK wildcard        2.Basic Regular Expressions1),*The previous character matches 0 or more times~ grep "A *" Test_rule.txt # matches all content, including blank lines~ grep "aa*"

2.5-shell Programming Preliminary

Previously review:File management, user management, rights Management, Bash's basic featuresFile Management: CP,MV,RMUser

Shell-neutral expression primitive characters

^ matches only the beginning of the line$ matches end of line only* A single character immediately after the *, matching 0 or more of this single characters, it can also be a sequence. You can use-to represent a range of character sequences within []

Shell Simple Summary--grammar

First, condition testThe command test or [can test whether a condition is true, if the test result is real, the exit status of the command is 0, if the test result is false, the exit status of the command is 1 (note the exact opposite of the logical

Shell Script Small Example

1-100 the sum of the natural numbers: Law one: For Loop #!/bin/bash#declare-i sum=0for ((i=0;i" | awk "{print $NF}");d o if ["$state" = = ' established '];then let estab++ elif [ "$state" = = ' LISTEN '];then let listen++ else let other++ Fidoneecho

Shell finishing (37) = = = Variable understanding and two exercises

1/etc/profile2 ~/.bash_profile3 ~/.BASHRC4 $PATHWhere/etc/profile is the global environment variable that takes effect for all users, while. Bash_profile only works on the current user.~/.bash_profile: Each user can use this file to enter shell

Common shell commands

1. Find the contents of the file (e.g. account number: zh123456): Grep;lsMode 1 Find all Files: grep zh123456 *Mode 2 recursive lookup: ls | Xargs grep zh123456Mode 3 Recursive lookup: Find. -name ' apf44_zswmpay* ' |xargs grep applog|awk-f ": '

Introduction to Shell Process statement usage

1) Use if, case, readExample 1:#!/bin/bash#读取终端输入的字符Read-p "Please input a number:" NN1= ' echo $n |sed ' s/[0-9]//g '#使用if语句进行判断if [!-Z $n 1]Thenecho "Please input a number."Exit 1elif [$n-lt 0] | | [$n-GT 100]Thenecho "The number Ranger is

Shell finds files within a specified time period

#!/bin/bash#20170905 input parameter formatecho "displays" Backup Files "Date_0=$1date_1= ' expr $date _0 + 1 'date_2= ' expr $date _0 + 2 '#定义时间段touch-d $date _0/tmp/tm-0.file #开始时间touch-d $date _1/tmp/tm-1.file #结束时间1touch-d $date _2/tmp/tm-2.file

Shell Judgment String Equality script

#!/bin/shEcho-n "Login:"Read nameEcho-n "Password:"Read passwdIf ["$name" = "AA"-a "$passwd" = "AAA"];thenecho "right!"else echo "Error"FiOne. the problem with [: missing '] in the running process is ["$name" = "AA"-a "$passwd" = "AAA"] "$name"

Shell file permissions and script execution

ll command to view file informationThe first root represents the creator of the file, and the 2nd root represents the group root that the file belongs toRWX delegate Rights R (read) permission, W (write) write permission, x Execute permission,

Shell: Delete/Preserve a specified line in a file

Delete the first line in the file file1 to the line containing word characters and redirect to the file File2:Sed ' 1,/word/d ' file1 > File2Keep the lines in the file file1 that contain word characters and redirect to the file File2,-n to indicate

Linux Shell Learning Four

Shell Branch Statement Case inch mode 1) Command1 command2 command3 ; Mode 2) Command1 command2 command3 ;; *) Command1 command2 command3 ;; EsacDescription: After the case is taken, the value is the keyword in,

LINUX notes-specific shell variables

$# the number of arguments passed to the script$* Displays all parameters passed to the script in a single string. Unlike positional variables, this option parameter can be more than 9 $$ The current process ID number for the script to run $!

Functions in the shell

What is a function? 1) Basic concept of function functions:function, refers to the code of a separate function as a whole and take a name for it, that is, named code snippet, also known as function; function is an important component of

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

Shell multithreading operations and number of threads

Task required: When I need to compress the files in a folder separately:The original code:1 #!/usr/bin/shell2 function Getdir () {3 forElementinch' LS $`4 Do5 #Echo $element6Dir_or_file=$1$element7 8 #Echo $dir _or_file9

Java invoke shell script

There are several places in the recent new project where you need to invoke the shell script, which records a simple shell script invocation method. The code is as follows:private void Callsh () {InputStreamReader STDISR = null;InputStreamReader

An array of shell primer (iv)

One or one-D arraysBash supports one-dimensional arrays (which do not support multidimensional arrays) and does not limit the size of arrays.Similar to the C language, the subscript of an array element is numbered starting with 0.Second, define the

Total Pages: 541 1 .... 462 463 464 465 466 .... 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.