02-08-2015
Quote:
Originally Posted by
senhia83
maybe this will work too?
Yes, it does remove parentheses, but not the content in them.
Next time I should ask precisely.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I would like to replace a comma in parentheses to a semicolon for example. Other commas outside () stay unchanged. How can I do this?
aaaa,bbb,ccc,ddd(eee,fff,ggg),hhh,iii
to
aaaa,bbb,ccc,ddd(eee;fff;ggg),hhh,iii
Thanks (5 Replies)
Discussion started by: lalelle
5 Replies
2. UNIX for Dummies Questions & Answers
hi, unix gurus.
i am wondering if someone can give me a clear explanation of the differneces between parentheses and brackets, both single and double.
i have heard that double parentheses (( are used for numerical expressions and that single brackets [ are used for strings. but i see... (1 Reply)
Discussion started by: ankimo
1 Replies
3. Shell Programming and Scripting
Hello,
Some time back I had posted a request for a syllable concordance in which if a syllable was provided in a file, the program would extract a word from a file entitled "Corpus" matching that syllable. The program was
The following script was provided which did the job and for which I am... (3 Replies)
Discussion started by: gimley
3 Replies
4. Shell Programming and Scripting
I was looking at a script in my little book on bash and saw that one of the if statements had parentheses instead of brackets for the condition. I've been trying to find in my book where it talks about parentheses (because the examples on the if statement in an earlier chapter doesn't seem to... (3 Replies)
Discussion started by: Straitsfan
3 Replies
5. Shell Programming and Scripting
I have file which is almost look like below
MMIT
MMIT
... (2 Replies)
Discussion started by: manas_ranjan
2 Replies
6. Shell Programming and Scripting
This is my input file:
a|b|c(ef)|g|h(km)|p
My output file should look like:
a|b|ef|g|km|p
That is, pipe is the delimiter. The data within pipe must be displayed as it is but if it encounters any data within parentheses, then only the data within parentheses has to be displayed ( the data... (2 Replies)
Discussion started by: ksatish89
2 Replies
7. Answers to Frequently Asked Questions
Suppose I have this code :
int main () { int i = NULL; /* incorrect */ return 0; }
and I want to put the word between the two parentheses
like this :
int main (void) { int i = NULL; /* incorrect */ return 0; }
which command is used to do it in Linux ? (2 Replies)
Discussion started by: steve120
2 Replies
8. Shell Programming and Scripting
Hi, I have a big settings confg (file attached). There are a few separate tasks that I have to accomplish. All scripting/programming languages are appreciated.
1. I need to parse all values and output to stdout. Sample output (truncated):
VALUEA
2017-01-01
Lores ipsum
Lorem ipsum dolor sit... (11 Replies)
Discussion started by: useretail
11 Replies
9. UNIX for Beginners Questions & Answers
Dear community, I am facing a problem and I kindly ask your help:
I have 4 different data sets consisted from 3 different types of array.
On each file, column 1 is chromosome position, column 2 is SNP id etc... Lets say I have the following (bim) datasets:
x2014:
1 rs3094315... (4 Replies)
Discussion started by: fondan
4 Replies
LEARN ABOUT CENTOS
ppix::regexp::structure::capture
PPIx::Regexp::Structure::Capture(3) User Contributed Perl Documentation PPIx::Regexp::Structure::Capture(3)
NAME
PPIx::Regexp::Structure::Capture - Represent capture parentheses.
SYNOPSIS
use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{(foo)}smx' )
->print();
INHERITANCE
"PPIx::Regexp::Structure::Capture" is a PPIx::Regexp::Structure.
"PPIx::Regexp::Structure::Capture" is the parent of PPIx::Regexp::Structure::NamedCapture.
DESCRIPTION
This class represents capture parentheses.
METHODS
This class provides the following public methods. Methods not documented here are private, and unsupported in the sense that the author
reserves the right to change or remove them without notice.
name
my $name = $element->name();
This method returns the name of the capture buffer. Unless the buffer is actually named, this will be "undef".
number
my $number = $element->number()
This method returns the number of the capture buffer. Note that named buffers have numbers also.
SUPPORT
Support is by the author. Please file bug reports at <http://rt.cpan.org>, or in electronic mail to the author.
AUTHOR
Thomas R. Wyant, III wyant at cpan dot org
COPYRIGHT AND LICENSE
Copyright (C) 2009-2013 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full
text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
perl v5.16.3 2014-06-10 PPIx::Regexp::Structure::Capture(3)