grep.1posix -F '[error]' web.log
search a file for a pattern
-F     Match  using  fixed  strings.  Treat  each  pattern  specified  as  a  string instead of a regular
       expression. If an input line contains any of the patterns as a contiguous sequence of  bytes,  the
       line shall be matched. A null string shall match every line.
source manpages: grep