Hi:
Let's suppose I want to replace all the | by > ONLY when | is between . Usually (and it works) I would do something like
sed -e 's/\(\*\)|\(*\]\)/\1>\2/g'
where I have to "save" some portions of the matched region and use them with the \n metacharacter. I was wondering if I could... (2 Replies)
Hello all,
I have a question about what you think the best practice is to determine what region you are running on when you have a system setup with a DEV/TEST, QA, and PROD regions running the same scripts in all.
So, when you run in DEV, you have a different directory structure, and you... (4 Replies)
Hi guys,
I hope everybody is doing fine. I have written this small program which solves the critical region problem. Only on of the two threads can make changes to a common variable called counter. I am using two semaphores, is it possible to write the same program using only one semaphore? Here... (0 Replies)
Dears my rootvg is missed up i can not extend the /opt
as soon as i try to extend the Filesystem its give me that there is not enough space .
as there any way to change the REGION of the LVs in HDISK1 ?
lspv -p hdisk0
hdisk0:
PP RANGE STATE REGION LV NAME TYPE ... (8 Replies)
Input file
2 5 ASFGEWTEWRQWEQ
10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ
1 6 WRQTQWTQTQWTQT
Desired output file
2 5 ASFGEWTEWRQWEQ
10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ
1 6 WRQTQWTQTQWTQT
Column 1 is the start region of underline the text in column 3;
Column 2 is the end region of... (13 Replies)
Hello, I am trying to concatenate two strings by merging the overlapped region. E.g.
Seq1=ACGTGCCC
Seq2=CCCCCGTGTGTGT
Seq_merged=ACGTGCCCCCGTGTGTGTFunction strcat(char *dest, char *src) appends the src string to the dest string, ignoring the overlapped parts (prefix of src and suffix of dest).... (30 Replies)
Hi,
I would like to know how can I get a mean score value by ID over a defined genomic region. Here it is an example:
file1
12 100 103 id1
12 110 112 id1
12 200 203 id2
file2
12 100 101 1
12 101 102 0.8
12 102 103 0.7
12 110 111 2.5
12 111 112 2.8
12 200 201 10.1
12 201 202... (7 Replies)
Discussion started by: fadista
7 Replies
LEARN ABOUT CENTOS
xshrinkregion
XIntersectRegion(3) XLIB FUNCTIONS XIntersectRegion(3)NAME
XIntersectRegion, XUnionRegion, XUnionRectWithRegion, XSubtractRegion, XXorRegion, XOffsetRegion, XShrinkRegion - region arithmetic
SYNTAX
int XIntersectRegion(Region sra, Region srb, Region dr_return);
int XUnionRegion(Region sra, Region srb, Region dr_return);
int XUnionRectWithRegion(XRectangle *rectangle, Region src_region, Region dest_region_return);
int XSubtractRegion(Region sra, Region srb, Region dr_return);
int XXorRegion(Region sra, Region srb, Region dr_return);
int XOffsetRegion(Region r, int dx, int dy);
int XShrinkRegion(Region r, int dx, int dy);
ARGUMENTS
dest_region_return
Returns the destination region.
dr_return Returns the result of the computation. ds Dy move or shrink
dx
dy Specify the x and y coordinates, which define the amount you want to the specified region.
r Specifies the region.
rectangle Specifies the rectangle.
sra
srb Specify the two regions with which you want to perform the computation.
src_region
Specifies the source region to be used.
DESCRIPTION
The XIntersectRegion function computes the intersection of two regions.
The XUnionRegion function computes the union of two regions.
The XUnionRectWithRegion function updates the destination region from a union of the specified rectangle and the specified source region.
The XSubtractRegion function subtracts srb from sra and stores the results in dr_return.
The XXorRegion function calculates the difference between the union and intersection of two regions.
The XOffsetRegion function moves the specified region by a specified amount.
The XShrinkRegion function reduces the specified region by a specified amount. Positive values shrink the size of the region, and negative
values expand the region.
SEE ALSO XCreateRegion(3), XDrawRectangle(3), XEmptyRegion(3)
Xlib - C Language X Interface
X Version 11 libX11 1.6.0 XIntersectRegion(3)