Hello,<br><br>I am trying to get the revision of a subversion repository and compare it with an existing revision. If the revision is newer, the repository needs to be checked out.<br><br>To determine the current revision, I thought I could use grep:<br>
svn info <a href="https://spaceboyz.net/svn/aegisub/trunk">https://spaceboyz.net/svn/aegisub/trunk</a> | grep Revision<br><br>This returns the whole revision line:<br>Revision: 2245<br><br>Basically what I need to do is only return the revision number, so I can compare it with the previous revision number. Is there a way to make grep return the next four characters after the string "Revision: " ?<br>
Google was not in a good mood today.<br><br>- Erin<br><br>