I am new to shell scripting.
I want to write a shell script to get the date from user from the terminal in format yyyy-mm-dd
and use that date as start date to get the revision changes made in svn repository for a particular date range.
My script is:
echo "Date"
echo "Enter year"
read Y
echo "Enter month"
read M
echo "Enter Date"
read D
D1=`expr $D + 3`
svn log -r {$Y-$M-$D}:{$Y-$M-$D1} http://svn.abc.com/svn/trunk.
This is the script I have written.
I know I should use date function not sperately Y M D.
And also I want to list only revision numbers not full log messages as svn log command shows.