Suppose I have a file that includes the line:
file: "print.exe", name: "David Albertas", address: "New York City"
I want to use grep and regexp that I get the output -
name: "David Albertas"
and only this output!
I wrote the command:
egrep -o "name: \".*\"" script
but I get bigger output than what I expected which is:
name: "David Albertas", address: "New York City"
This is not good enough. Can you think of a regexp that can help me? For your convenience, the file is attached.