in reply to issue with grep in the output of a command

You have code in replies above but for future reference:

  1. We like to see your code (working code, that is, where code which compiles but produces errors or warnings upon execution minimally satisfies the "working" condition)... as a alternative to mere referals to the documents, in this case:
  2. perldoc -f grep

$anecdote ne $data


Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
  1. code
  2. verbatim error and/or warning messages
  3. a coherent explanation of what "doesn't work actually means.