Skip to content

grep

grep

This search for a particular keyword - ==Syntax== grep [options] “pattern” file/files

  • Options
    • -f Takes search string/pattern from a file
      • exaple the file contains classes or smth
    • -e Provieds a number of strigs
      • **its better to use -E and | the resutl **
    • -E
      • grep -e “line|xd|smth|etc” file name