How to get current user that is using svn on particular workstation?
can I use svn.exe executable with some switch to get that info.
Thanks.
grep username ~/.subversion/auth/svn.simple/* --after-context=2 | tail -1
Explanation:
Grep the file in grep username ~/.subversion/auth/svn.simple/*
will look for username
--after-context=2
will print +2 line after it encounters username
Output:
username
V 6
Bhavik
| tail -1
will give me my username i.e Bhavik
. Hope this explains the code.