Skip to main content
1 of 3
Stephen Kitt
  • 482.8k
  • 60
  • 1.2k
  • 1.4k

Expanding on don_crissti's comment, the * operator in a regular expression needs an operand; in your case, . which stands for "any character":

grep -E -rnw ".*BCW.*" ~/Dropbox 

You can get the same result without using a regular expression:

grep -rn BCW ~/Dropbox 
Stephen Kitt
  • 482.8k
  • 60
  • 1.2k
  • 1.4k