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

Shell script game: scissors stone Cloth

#!/bin/bash#author: The Adventures of Tintin (Jacob) #定义数组, save all the possibilities of Punch game= (stone   scissors   cloth) num=$[random%3]computer=${game[$num]}# Get the punch of a computer by random number # The possibility of a punch is

Shell Common Commands

1. View Memory usageFree-m2. View drive Information usageFdisk-l3. View CPU and Memory usageTop4. View CPU Information commandsCat/proc/cpuinfo5. View memory InformationCat/proc/meminfo6. Modify the IP

Common shell variables

The file name of the shell itself $1~ $n Each parameter value added to the shell. $ $ is the 1th parameter, and the $ = is the 2nd parameter ... $$ the shell itself PID (ProcessID) $! PID of the Shell's last running background process $? End

Bulk Delete User--shell script

#!/bin/bash# #User  : mobanche#date : 2017-7-17#work : delete user########### ####################################          define  function         ############################################### function get_answer {#unset  ANSWERASK_COUNT=0#while 

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 $!

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

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

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 =

Bash Shell parameter expansion

1 ${parameter%word} and ${parameter%%word}${parameter%word},word is a pattern that starts at the end of the parameter parameter and matches it forward. A single% makes the shortest match, that is, matches from the back forward, and encounters a

Linux Shell Code

1#! /bin/Bash2 3#/python2292/cnedmp/etlscript/cnedmp_etl_v1.0/Testhis4load_path=$ (CD $ (dirname$0);pwd)5#/python2292/cnedmp/etlscript/cnedmp_etl_v1.06deploy_path=$ (CD $ (dirname$LOAD _path);pwd)7#/python2292/cnedmp/Etlscript8base_path=$ (CD"$

Some tips for Bash shell command logging and CentOS

Practical Tips for ①centos:First, press the CTRL+ALT+F2 can be switched from the graphical interface to the command line (Shell window), press CTRL+ALT+F1 can be switched from the command line to the graphical interface (if the installation of

Bulk change read and write permissions for all files under a file using the Terminal shell command

The previously installed directory on OpenFire encountered this problem, and today again. You need to change all subdirectories below a directory and the three permissions of the file: the user reads and writes. The administrator reads and writes.

Shell script-Predefined constants

The execution name of this program$n the nth parameter value of this program, n=1..9$* all parameters of this program, this option can have more than 9 parameters.$# the number of parameters for this program$$ the PID of this program (the current

Add a column to a file using a shell script

My college classmates asked me a script question, presumably the need is to see all the ports open, but also to know the application path of each port, and to be flush with the previous data, is to add a column of data. I butt eyes, very easy, but

Add a network Clip interface IP address shell script

#!/bin/bash#author wangning#date 2017-7-15#qq 1198143315#email [email protected]##### ########################## define color ############################# #red = "\033[31m" green= "\033 [32m "yellow=" \033[33m "color=" \033[0m "#####################

Linux-shell Programming (I.)

Shell Programming Script ProgrammingCompilers, interpretersProgramming languages: Machine language, assembly language, advanced languagesStatic language: Compiled languageStrongly typed (variable)Convert into executable format in advanceC, C + +,

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 .... 454 455 456 457 458 .... 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.