Home / Labs / Searching Text

Searching Text

Quick answer: grep word file prints every line containing word. Add -i to ignore case, -c to count matches and -v to show lines that do not match.

grep is the tool you will reach for most often. Give it a word and it hands you the exact lines you wanted, then lets you count them.

Open this lab

Commands practised here

Nearby labs