man grep:
Zitat:
-o, --only-matching
Show only the part of a matching line that matches PATTERN.
|
z.B.:
Code:
m3@m3:~$ grep -G "<title>.*</title>" x.html
<html><head><title>Forenübersicht</title><STYLE>A {
m3@m3:~$ grep -Go "<title>.*</title>" x.html
<title>Forenübersicht</title>