[clug-talk] egrep not working properly under cygwin

simon at mungewell.org simon at mungewell.org
Wed Apr 29 15:45:28 PDT 2009


> For me these work with regular grep:
> $ grep "\-1$" summary.txt
> $ grep -v "\-1$" summary.txt
>
> grep _does_ complain about the non-escaped minus mark.

Didn't work..... and then a neuron fired!!! DOS format files!

--
$ cat summary.txt | dos2unix | egrep -v -e "-1$" | tail
475212.000 51.10411832844 -114.04478815286 3 12
475506.000 51.10411826324 -114.04478803905 4 6
475961.000 51.10411816981 -114.04478800867 122 161
476104.000 51.10411824559 -114.04478800227 3 4
476609.000 51.10411831786 -114.04478817894 129 209
477169.000 51.10411832040 -114.04478816533 165 169
477311.000 51.10411828605 -114.04478819246 3 11
478174.000 51.10411834941 -114.04478804193 62 274
478442.000 51.10411833032 -114.04478822637 169 242
478521.000 51.10411824799 -114.04478824568 7 21
--

Horay,
Simon.





More information about the clug-talk mailing list