Code Comments
Programming Forum and web based access to our favorite programming groups.I have some data in the following format: (Script(ID-VG)) I want to be able to remove the "(Script" part at the start of the field. Does anyone know how to do this? I know its possible to remove the last n characters of the field because I can allready do this using the length command. Thanks in Advance JAF
Post Follow-up to this message$i = substr($i,8) Joe Farish wrote: > I have some data in the following format: > > (Script(ID-VG)) > > I want to be able to remove the "(Script" part at the start of the > field. Does anyone know how to do this? > > I know its possible to remove the last n characters of the field > because I can allready do this using the length command. > > Thanks in Advance > > JAF
Post Follow-up to this message
Joe Farish wrote:
> I have some data in the following format:
>
> (Script(ID-VG))
>
> I want to be able to remove the "(Script" part at the start of the
> field. Does anyone know how to do this?
>
> I know its possible to remove the last n characters of the field
> because I can allready do this using the length command.
>
> Thanks in Advance
>
> JAF
gawk '{sub(/\([^(]*/,"")}1'
Ed.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.