Using grep Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Check that pattern matches a whole word

A

grep -w “string”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What happens if there isn’t a match

A

no meesage displays, and we go back to the prompt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Check for a pattern regardless of case

A

grep -i “string”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly