text: Q:
  
  BATCH: grep equivalent
  
  I need some help what ith the equivalent code for grep -v Wildcard and grep -o in batch file.
  This is my code in shell.
  result=`mysqlshow --user=$dbUser --password=$dbPass sample | grep -v Wildcard | grep -o sample`
  
  A:
  
  The batch equivalent of grep (not including third party tools like GnuWin32 grep), will be findstr.
  grep -v finds lines that don't match the pattern. The findstr version of this is findstr /V
  grep -o shows only the part of the line that matches the pattern. Unfortunately, there's no equivalent of this, but you can run the command and then have a check along the lines of
  if %errorlevel% equ 0 echo sample
  
  