Several cases of sqlplus and shell passing value to each otherScenario One: The simplest invocation of sqlplus in the shell$cat test.sh#!/bin/shSqlplus Oracle/[email Protected]>file.log SELECT * from Test;ExitEOF #注意EOF要顶格写$sh test.sh$cat
Softlink is also called symbolic link, the equivalent of a "shortcut", by Ln–s sourcefile distinctionfile (ln–s TARGET link_name) created, the existence of the connection file makes the file system simplified, Users are more convenient to operate.
Linux Shell sleep/wait (reprinted) 2007-04-27 18:12Bash's basic configuration is made up of configuration files./etc/profile is called a global configuration file for the shell.Another file in the personal directory under the personal
The shell condition determines if the-Z to-D meaning[-A file] is true if file exists.[-B file] True if file exists and is a block special file.[-C file] True if file exists and is a word special.[-D file] True if file exists and is a directory.[-E
How to build a archive file using shell scripting and export the signed IPA file.1. Build Script DescriptionThis shell script is used for Build,xcode workspace source code engineering and is exported as a re-signed IPA file for distributing test
LS is the command to view files in directories and directoriesNow let's look at the use of this commandLsThe syntax of LS is mainlyLS View directory contentsLs-l Viewing folder detailsLs-a Viewing hidden filesLs-a view hidden files, but does not
${} for reading, extracting and replacing strings, you can use ${} to extract the string 1, extract the file name [[email protected] log]# Var=/dir1/dir2/file.txt[[email protected] log]# Echo ${VAR##*/}FILE.TXT2, extract suffix [[email protected]
Assignments and operations in the shell are string-handling by default.1) Use let (integer only)Var=1Let "Var+=1"Echo $varOutput is 2Attention:A) Let almost all operators are supportedb) Power operation should use "* *"c) parameters are accessed
Fix the problem: convert GMT to Beijing time via JS script and push it to the demand side.# time converted to pure digitalStarttime= ' date-d '-1 day "" +%y-%m-%d 00:00:00 "Endtime= ' Date ' +%y-%m-%d 00:00:00 "'st=$ (' Date--date ' $startTime ' + '%
--"Bird's private Cuisine"Formal representation is the method of dealing with strings, and he acts as a unit of behavior to deal with strings;Formal representation through the assistance of some special symbols, can allow users to easily reach the
1. Fake Cookie Login system (in fact, this step is redundant, most users do not change the password, are the default 123456)Login successfully set 4 cookies, see CodefunctionLogin$lusername,$lpassword,$key,$lifetime=0) {Global $set _username,$set
2. Variables and operators2.1. Types of variablesLocal variables, environment variables, variable substitution (display variables), positional variables, standard variables, special variables;2.2. Local VariablesLocal variables are used in scripts
INI file format is generally composed of section, key, value three partsFormat:[first section ]First key = valueSecond key = second value[section II ]First key = Val1,val2,val3Example:[COM]Kinggoo = kinggoo.comIn fact, this role is not so
Case ... Esac is similar to the switch ... case statement in other languages, and is a multi-branch selection structure.The case statement matches a value or a pattern, and if the match succeeds, the matching command is executed. The case statement
1. Determine the logged-on user1.1 Scripts[Email protected]_1 shell]$ VI check_user.sh#! /bin/shecho "You is logged in as ' WhoAmI '"; if [' whoami '! = Devtac]; Then echo "must is logged in as Devtac-to-run this script." Exitfiecho "Running
Reference article: 1 http://blog.csdn.net/wuwenxiang91322/article/details/9259877 changing file permissions via chmod Additional knowledge :1 Linux files have three identities and four permissions, and three identities are:
U: Owner of File
Author : Fly2015I love to crack the first lesson of the Forum training elective exercises of the topic 7 . This shell has not been heard, but it is relatively simple to take off, according to the law of ESP can be direct to the light,Dump out the
Summary of manual MoleBox shell Removal
Author: Fly2015
This program is a shell program that I love to crack the shell practice 8th. The shell of this program is the MoleBox V2.6.5 shell. These are advertisements and can be ignored directly. The
RHEL automatically installs the zookeeper shell script, rhelzookeeperRHEL automatically installs the zookeeper shell script
A: This script runs on Linux RHEL6.
B, C, D,...: The machine on which zookeeper cluster is to be installed, Linux
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.