Fwd: Re: grep command not working as expected



A simple grep command, 'grep -vf patternfile inputfile' works on Linux, but the same command doesn't work on FreeBSD-6.1.

To make it work I found I had to use -F to force the interpretation of fixed-strings. I don't know why it made a difference from Linux, and nothing in the man page appears to mention why.

Kind regards,
Stephen Allen
--
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: find a file
    ... Although I have used Ubuntu for quite some time I have never been sure ... I am not a Linux person although, ... entered *.lck and the report was no files found. ... figure out how to use the grep command. ...
    (Ubuntu)
  • Re: Search for an expression in a text file
    ... ritesh writes: ... Currently the search is done using the 'grep' utility on linux. ... The grep command happens to be implemented in C. ... Keith Thompson kst-u@xxxxxxx ...
    (comp.lang.c)