[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep --only-matching --ignore-case
From: |
Jori Mantysalo |
Subject: |
grep --only-matching --ignore-case |
Date: |
Wed, 5 Feb 2003 10:54:21 +0200 (EET) |
I want to get TITLE element of WWW-page. I tried
grep --only-matching --ignore-case "<title>.*</title>" somedoc.html |
cut -f 2 -d ">" | cut -f 1 -d "<"
But that doesn't work, because --ignore-case and --only-matching doesn't
seem to work together. At least man-page and info-page says nothing about
this, so one would think that it should work.
I am using Red Hat Linux 8.0 normal installation, so version of grep is
2.5.1.
--
Jori Mäntysalo
- grep --only-matching --ignore-case,
Jori Mantysalo <=