I have something like this:
bash-3.2$ svn info
Path: .
URL: svn+ssh://nlaedev01@10.209.194.15/files0/nlae_dev_svn/repos/newlook-endeca/trunk
Repository Root: svn+ssh://nlaedev01@10.209.194.15/files0/nlae_dev_svn/repos/newlook-endeca
Repository UUID: 4e8fbe85-c2e2-42fe-a5fa-f9f9100d2393
Revision: 81
Node Kind: directory
Schedule: normal
Last Changed Author: vidalga
Last Changed Rev: 81
Last Changed Date: 2013-04-23 12:23:37 +0000 (Tue, 23 Apr 2013)
All i want is to extract the revison number once i do svn info. I want to store it into a variable. and then print later.
---------- Post updated at 06:04 PM ---------- Previous update was at 05:59 PM ----------
I can find the revsion by
svn info | grep "Revision"
It prints "Revision : 81"
Now how to store it into a variable? I am stuck here