[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"perl mode" grep fails
From: |
paramaeleon |
Subject: |
"perl mode" grep fails |
Date: |
Tue, 23 Jun 2009 13:07:18 +0200 |
User-agent: |
freenetMail |
Dear Sir or Madam,
I found out that grep (GNU grep) 2.5.1 fails to perform the
following command:
grep -P '^[^=]+=[^=]+$' german.properties
Operation stops on memory access error.
Since the -P option says this should be equivalent to perl,
I wrote these lines of perl code, which perform fine:
#!/usr/bin/perl
open IN, "< german.properties";
while(<IN>){
print if /^[^=]+=[^=]+$/;
}
close IN;
Yours,
Matthias Ronge
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- "perl mode" grep fails,
paramaeleon <=