|
Gnu
»
Gnu - Grep
"perl mode" grep fails
View:
Threaded
Chronologically
All Messages
New views
1 Messages —
Rating Filter:
0
1
2
3
4
5
Alert me
"perl mode" grep fails
by paramaeleon
:: Rate this Message:
Reply to Author
|
View Threaded
|
Show Only this Message
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
Free embeddable forum
powered by
Nabble
Forum Help