Search Text Files using Regular expressions Flashcards

1
Q

What does the . do

A

Represents a single character

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

What does the ^ command do

A

Search the beginning of a line

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

What does the $ command do

A

Search the end of a line

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

What does the command [abc] do

A

Search for specified characters

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

What does the command [^abc] do

A

Search for other characters, but not these

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

What does the command * do

A

Match zero or more of the preceding characters or expression

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

what does the command man7 regex do

A

Manual pages for regular expressions

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

What does the command sed do

A

The stream editor command can operate on files using regular expressions

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

What does the command egrep do

A

searches a specified file line by line, returning lines that contain a pattern matching a given regular expression

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

what does the command fgrep do

A

Searches based on strings rather than patterns. Also uses file globbing instead of regular expressions

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