[olug] Character Removal

Carl Lundstedt clundst at unlserve.unl.edu
Fri Oct 19 01:09:21 UTC 2007


1...2...3...4...I smell a scripting war!!!
:)
Carl
> 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