<br><br><div class="gmail_quote">On Mon, Jan 24, 2011 at 7:12 PM, Les Mikesell <span dir="ltr"><<a href="mailto:lesmikesell@gmail.com">lesmikesell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On 1/24/11 5:57 AM, Agnello George wrote:<br>
> i got a file like this and i need add it into my svn<br>
><br>
> admin/upload_data/FINAL  leg  list  19_01_2010 to  agar  (Merged data in one).xls<br>
><br>
> i as able to add other files with space using the following command :<br>
><br>
>   svn st |grep ? |cut -c8- |sed 's/ /\\ /g' |xargs svn add<br>
><br>
> however there are some special characters like ( ) +#@  that svn cannot<br>
> understand as the full path of  the file .<br>
><br>
> can some one help me in this in perl or in shell .<br>
<br>
</div></div>What you need to know is too long to describe here, but first you need to find a<br>
list of shell metacharacters and how to quote them on the command line. Short<br>
version is that a \ quotes the next character single quotes quote everything<br>
except another single quote literally, double quotes cover most things but allow<br>
$variable expansion.<br>
<br>
Then you need to look at what subversion itself requires after you get the<br>
literal value past the shell parser.  I thought it was just that @ was<br>
interpreted as file@revision peg revision unless you append another @ to the end<br>
but there could be more restrictions.   All of that is simple enough to work<br>
around - but probably not worth it compared to using sensible names.  However<br>
the thing that is going to kill you is that files that differ only in case of<br>
one or more letters are different files on linux - and in a linux svn repository<br>
- but not on windows (where such things are most likely being created).  Enforce<br>
some rules before that happens.<br>
<font color="#888888"><br>
--<br>
   Les Mikesell<br>
    <a href="mailto:lesmikesell@gmail.com">lesmikesell@gmail.com</a><br>
</font><div><div></div><br></div></blockquote></div><br><br>I found the solution ( i think ) <br>i did <br><br> svn add  html/Set min account.html<br clear="all">svn: warning: 'html/Set' not found<br>svn: warning: 'min' not found<br>
svn: warning: 'account.html' not found<br><br><br>then i did <br>svn add  "html/Set min account.html"<br>A         html/Set min account.html<br><br><br>so here is my final answer <br><br>instead of doing <br>
<br>for i in $(svn st | grep "?" | awk '{print $2}'); do svn add $i;done<br><br>i can do <br><br>for i in $(svn st | grep "?" | awk '{print $2}'); do svn add <b>"$i" </b>;done<br>
<br>This is working for me ... i wonder if i am going to stumble somewhere ...humm!<br><br>-- <br>Regards <br>Agnello D'souza<br><br><br>