I need to extract two parameters from each line of a svn log but I am not able to do it with grep.
My Svn log command, such as
svn log http://svn.apache.org/repos/asf/xerces/java/trunk/ | grep "^r[0-9]\+ | " | cut -c2-
Outputs the result in this format:
318150 | lehors | 2002-01-28 20:48:11 +0100 (Mon, 28 Jan 2002) | 2 lines
318149 | elena | 2002-01-28 20:46:33 +0100 (Mon, 28 Jan 2002) | 12 lines
318148 | lehors | 2002-01-28 20:33:36 +0100 (Mon, 28 Jan 2002) | 2 lines
318147 | lehors | 2002-01-28 20:22:51 +0100 (Mon, 28 Jan 2002) | 2 lines
How can I grep the release number (first parameter) and the date in this format?
318150 2002-01-28
318149 2002-01-28
318148 2002-01-28
318147 2002-01-28