[olug] Character Removal
stan at srcproductions.com
stan at srcproductions.com
Fri Oct 19 06:08:30 UTC 2007
Would love to use Perl but I'm still getting my teeth wet on Bash
scripts. Anybody got a good web site or book to get started learning
Perl? What I'm doing I think would be a better match for Perl than it
is for Bash but it's helping me learn a lot of things in Bash I never
knew before so I guess that's a plus.
Quoting Luke -Jr <luke at dashjr.org>:
> On Thursday 18 October 2007, George Neill wrote:
>> On 10/18/07, stan at srcproductions.com <stan at srcproductions.com> wrote:
>> > I'd like to remove all characters between a '(' and the second ')'. I
>> > tried command lines like:
>>
>> gneill at vmware ]$ echo "this (is what 123 ) a (simple) test" | perl -pe
>> 's/(?<=\()[[:alnum:][:space:]]+//g;'
>> this () a () test
>
> perl -pe 's,\([^)]+,(,g'
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>
More information about the OLUG
mailing list