Respuesta :

myLine
b. grep "b[au]nk$" myLine
c. grep b[au]nk$ myLine
d. grep 'b[au]nk$" myLine

Respuesta :

${data-answer}
myLine

Explanation:

grep is a command used for searching a specified pattern in a given text.

Our goal is to match the character sequence - bank or bunk at the end of line in a  given line referenced by myLine.

The regular expression for the specified match criterion is:

b[au]nk$

The second character can be either a or u.

$ indicates match at end of line.

So the overall grep command is :

grep 'b[au]nk

myLine
b. grep "b[au]nk$" myLine
c. grep b[au]nk$ myLine
d. grep 'b[au]nk$" myLine

Respuesta :

${data-answer}
myLine

myLine
b. grep "b[au]nk$" myLine
c. grep b[au]nk$ myLine
d. grep 'b[au]nk$" myLine

Respuesta :

myLine

Explanation:

grep is a command used for searching a specified pattern in a given text.

Our goal is to match the character sequence - bank or bunk at the end of line in a  given line referenced by myLine.

The regular expression for the specified match criterion is:

b[au]nk$

The second character can be either a or u.

$ indicates match at end of line.

So the overall grep command is :

grep 'b[au]nk

myLine