Discussion:
Question 2b A1
(too old to reply)
Volodymyr Lyubinets
2011-09-26 15:22:07 UTC
Permalink
Since grep (egrep) is usually applied to text files, if we won't supply
one it will search for pattern in the standard input. Since we aren't
told any file name to check, will our answer look something like:

egrep "pattern"
?

And another question is: how do you stop input into grep (if entering
from keyboard)?
Brad Lushman
2011-09-26 17:58:07 UTC
Permalink
Post by Volodymyr Lyubinets
Since grep (egrep) is usually applied to text files, if we won't supply
one it will search for pattern in the standard input. Since we aren't
egrep "pattern"
?
Your text file should contain just the pattern; nothing else.
Post by Volodymyr Lyubinets
And another question is: how do you stop input into grep (if entering
from keyboard)?
Ctrl+D at the beginning of a line.

Loading...