thanks for your help!
i just need to know now how to keep running the tar command after the svn checkout , otherwise it start working without waiting for the svn checkout to work.
revnr=$(svn co svn://192.168.1.241/$1 temp |sed -n 's/Checked out.* //p')
This is the same a what Franklin52 suggested, just the technique of extraction the version string is different. The result is put in the variable revnr. The return code is the return code of the assignment and not that of the checkout so it is always 0. So in fact the first && is bogus and a "; " could also have been used instead. Since we do not have a return of the checkout we need to test the result:
[ "$revnr" != "" ]
If the variable is non-empty then the checkout was successful so we can go ahead with the tar.
As to your question about the information, IMO an O'Reilly book on your favorite shell (hint: pick ksh, pick ksh...) is usually a good place to start, but I am sure there are plenty of online resources...