Commands Help : grep

  •  print lines matching a pattern

[SYNOPSIS] grep OPTION PATTERN FILE
option
-iIgnore case distinctions in both the PATTERN and the input files
-nPrefix each line of output with the 1-based line number within its input file
-vInvert the sense of matching, to select non-matching lines
-wSelect only those lines containing matches that form whole words
-r(R) dirRead all files under each directory, recursively; this is equivalent to the -d recurse option
# grep -r 'word' dir

Comments

Popular posts from this blog

Java : Variables Declaring

SQL Self JOIN