The "grep" Command

¡Supera tus tareas y exámenes ahora con Quizwiz!

grep -i

ignores the case of the string.

grep

searches a file for a particular pattern of characters, and displays all lines that contain that pattern.

grep -c

shows the number of matches of the string for the file.

grep [options] pattern [files]

The syntax of grep.

grep -v

displays non-matching lines.

grep -n

displays the line number of the lines containing the term.

grep -l

lists just the names of the files with a match. This is used when search multiple files.


Conjuntos de estudio relacionados

Composers of the Romantic Period

View Set

Personality Disorders Practice Questions (Test #2, Fall 2020)

View Set

Ocean systems Chapter 1, Ocean systems Chapter 16, 17, 18., Oceans Section III, Oceans chapter 5, 6, 7, Oceans Section 2 set

View Set