Sample Header Ad - 728x90

grep substring between quotes

14 votes
5 answers
40279 views
Let's say I have a string like this: title="2010-09-11 11:22:45Z" How can I grep the date itself and disregard the quotes/title/Z? The file can contain more strings like: randomstring title="2010-09-11 11:22:45Z" title="disregard me" So I only want to grep timestamps with a single grep command.
Asked by polym (11052 rep)
Jul 26, 2014, 06:16 PM
Last activity: Sep 26, 2024, 01:39 PM