Code Comments
Programming Forum and web based access to our favorite programming groups.Hi.
Yes it work now.
The only trouble that I've was link to the fact that I use the scripted
form of awk so I must execute it like this :
./script_name --posix <data_file>
I'vent found a way to put the --posix in the script file.
In all case thanks to all of you.
"Patrick TJ McPhee" <ptjm@interlog.com> wrote in message
news:c3drjn$cbv$1@news.eusc.inter.net...
> In article <c3bpud$ord1@news.rd.francetelecom.fr>,
> JB <jacky.buyck@francetelecom.com> wrote:
>
> % The following command must extract all group of 1, 2 or 3 digits :
> % gawk --posix '/^[0-9]\{1,3\}/ {print $0}' < test
>
> It should be {1,3}, not \{1,3\}.
>
> You need to anchor the RE if you want to avoid matching numbers of
> more than three digits.
> --
>
> Patrick TJ McPhee
> East York Canada
> ptjm@interlog.com
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.