Afficher un message
Vieux 04/01/2008, 04h31   #5
somebody
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Regular expression with egrep question...

On Thu, 03 Jan 2008 18:31:39 -0600, Ed Morton wrote:

> egrep '[[:blank:]]+' myfile.txt
>
> is probably what you want. "\s" may be a shorthand perl-ism which your egrep may
> support when you use the "-P" (for perl) flag.
>
> Ed.



I tried the -P switch specifying perl type regex, but get this error.
Any ideas?

-Thanks


michigan:/home/sombody> egrep -P '^\s+' test.txt
egrep: conflicting matchers specified

  Réponse avec citation
 
Page generated in 0,06898 seconds with 9 queries