I've looked around for an answer but it seems like none of them deal with multiple variables like in my case so I'm hoping someone here can help me with a little bash-fu.
I have an svn log like so:
rXXXX | username | 2017-11-23 11:28:13 -0400 (date blah blah) | 1 line
here's the comment.
I'm looking to grab the revision number AND the comment but here's the catch I'm going through multiple repos and (another identifier call it id) so I have a loop like so:
for REPO in REPOS
do
for ID in IDS
do
svn log --search $ID $REPO
#need to grab revision and comment in here
REVISION=''
COMMENT=''
done
done
So I need to get these in variables and then do my thing with them.
I would appreciate any help.
EDIT: oh before people mention it I'm unable to use anything beside svn and bash commands based on my setup.
awk?