script easier to read.
Instead of explaining how getopts works in bash with a long text segment, I think it is easier to directly use a working script.
#! /Bin/bash
######################################## ##############################
# This is an example of using getopts in Bash. It also contains some
# Other bits of code I find useful.
# Author: Linerd
# Website: http://tuxtweaks.com/
# Copyright 2014
# License: Creative Commons Attribution-submit alike 4.0
# Http://creativecommon
Struct seg {int Val [4 * n]; bool rev [4 * n]; void Init (int id, int L, int R, int * B) {rev [ID] = 0; If (L = r) {Val [ID] = B [l]; return;} int M = (L + r)/2; init (ID * 2, L, M, B); Init (ID * 2 + 1, m + 1, R, B ); val [ID] = Val [ID * 2] + val [ID * 2 + 1];} int get (int id, int L, int R) {If (! Rev [ID]) return Val [ID]; else return (R-l + 1)-Val [ID];} voi
Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev09) #显卡00:14.0 USB Controller:intel Corporation Panther Point USB XHCI Host Controller (rev04) #usb控制器00:16.0 Communication Controller:intel Corporation Panther Point MEI Controller #1 (Rev04)00:1a.0 USB Controller:intel Corporation Panther Point USB Enhanced Host Controller #2 (Rev04)00:1b.0 Audio Device:intel Corporation Panther Point High Definition Audio Controller (rev04) #声卡00:1c.0 PCI Bridge:intel Corpora
> exit
3. Connecting to ASM instances
Copy Code code as follows:
$ Export Oracle_sid=+asm
$ sqlplus/as SYSDBA
4. Clear residual files
Copy Code code as follows:
Sql> select Name,file_number,group_number,file_incarnation from V$asm_alias; --View files, note that Group_number is located on different disk groups
sql> alter diskgroup DG1 drop directory ' +dg1/asmdb/file_name '; --You can use the method to remove files that need to be deleted
sql>
Reproduced in this article from: http://www.linuxdiyf.com/viewarticle.php?id=66575 when writing a shell script, sometimes we need to get the name of the current directory, the PWD command can return the full path of the current directory, Instead of the directory name, if you want to get the directory name, there are 4 methods: Method One, using the basename command to use basename is the easiest way: Example 1.0 basename/usr/local/bin Result: Bin BaseName and PWD, can be obtained to the current
difference between the deletion of the ASM database and the file system database is that the data files, control files, log files, and parameter files are all stored in the ASM system. Therefore, you need to make the appropriate settings in the ASM instance.
To completely clear the database.
1. Execute Step 3-4 to clear the file system database (shutdown first)
2. Run the drop database Command to clear the database (this command will clear data files, log files, temp files)
The Code is as follo
Easing (from V3.0)
Number
The larger the number, the smoother the movement, the slower it gets.
8
Lazyloadzoom (from V3.0 rev 1302181432)
Blooean
The zoom image that is loaded lazily. If this is true, the zoom image will only be loaded after the initial image interacts with the small image, otherwise the page load will be loaded immediately. If there are many magnified images that need to be loaded
. php) to handle XML-RPC requests, it is possibleDisclose arbitrary local files from the remote system. The following HTTP POSTRequest to the vulnerable XmlRpc server application specified stratesExploitation of this vulnerability.POST/xmlrpc_server.php HTTP/1.1Host: $ hostSolution:---------Upgrade to the latest version, such.* V1.11.12* V1.12.0 RC2* Update ZF2 master trunkIf you are using an older branch you are urged to upgrade!Zend framework security advisory:Http://framework.zend.com/securit
#13Size: No Module InstalledLocator: RAM slot #14
------- Uneven Memory Distribution
--- Directly view the product name
Dmidecode | grep "Product"
[Root @ lixora ~] # Dmidecode | grep "Product"
Product Name: VMware Virtual Platform
Product Name: paibx Desktop Reference Platform
[Root @ oracle sysbench-0.4.12] # dmidecode | grep "Product"
Product Name: System Product Name
Product Name: P8Z68-V LX
------ Observe the hardware device. If you see that the character similar to VMware is basical
Main TopicGiven a sequence, each point has a weight of a[i], if a sheep standing on the point I will be bounced to the i+a[i] point, support the single-point modification operation, from a point to go through how many times will be bounced.
SolvingSo that the Father node of each point is the node that will be bounced, and the answer to each point when asked is the depth of the point.LCT Maintain the Size field
At first thought is to have to the tree, later found himself committed 2, acc
digits after K.OutputFor each of the 3rd operations, give the correct answer.Sample Input4 41 1 3 21 2 4-12 1 33 2 4Sample Output2"Data Range"nfhq treap nude question (also splay nude)Ps:bzoj can not be used time (0)Code:1#include 2#include 3#include 4#include 5#include 6 #defineMAXN 500057 using namespacestd;8typedef pairint,int>PII;9 Charch;Ten intn,m,root,op,l,r,x; One BOOLOK; A voidReadintx) { - for(ok=0, Ch=getchar ();! IsDigit (CH); Ch=getchar ())if(ch=='-') ok=1; - for(x=0; isd
found that the edge was added in order, and I instantly felt that the world was beautiful.In my template, the cap stored in the edge indicates how much traffic is available on the edge, and flow indicates the traffic that is used now.[Cpp]# Include # Include # Include # Include # Include # Include # Include # Include # Include # Define maxn555# Define MAXM 555555# Define INF 1000000007Using namespace std;Struct node{Int ver; // vertexInt cap; // capacityInt flow; // current flow in this arcInt
-numbers.sh
Case one: No two digits are entered as command line parameters to run the script, you will get the following output.
Sample output
Copy Code code as follows:
#./two-numbers.sh
Usage-/two-numbers.sh x y
Where x and Y are two nos for which I'll print sum
Scenario Two: When a number exists, you get the result as shown in the figure.
Copy Code code as follows:
$./two-numbers.sh 4 5
Sum of 4 and 5 is 9
As a result, the above shell scri
directory ' +dg1/asmdb/file_name '; --can be used to delete files that need to be deleted sql> alter diskgroup REV drop directory ' +rev/asmdb/file_name '; Sql> select Name,file_number,group_number,file_incarnation from V$asm_alias; --Verify that the deleted results can also be removed by using the following method (Asmcmd command) to delete the remaining files $ export oracle_sid=+asm $ asmcmd a
by restarting the host.Before and after scanning, you can confirm storage mount information by viewing/PROC/SCSI/SCSI[Email protected] ~]# CAT/PROC/SCSI/SCSIAttached devices:Host:scsi0 channel:00 id:00 lun:00VENDOR:HP Model:dvd D ds8d3sh Rev:hhe8Type:cd-rom ANSI SCSI revision:05Host:scsi3 channel:03 id:00 lun:00VENDOR:HP model:p410i rev:6.62Type:raid ANSI SCSI revision:05Host:scsi3 channel:00 id:00 lun:00VENDOR:HP model:logical VOLUME
/no-> ∞. "in 80-h0447-1, X4
5. IOC: interference power spectral density of other residential areas and users, excluding hot noise.
Note: Noise (rather than hot noise) generally refers to hot noise and interference.
1.3 ratio symbol
1. EC/IO: the EC/IO of the pilot channel. The SNR of 95 and 1X is equal to that of the Pilot Channel.
2. EC/NT: Same as EC/Io, but used to use EC/Io.
3. Eb/NT: The demodulation threshold. It is the same as EB/NO in the absence of interference. Otherwise, it is smaller
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.