On Monday 24 Jan 2011 22:21:33 ed wrote:
> On Mon, Jan 24, 2011 at 05:27:11PM +0530, Agnello George wrote:
> > i got a file like this and i need add it into my svn
> > 
> > admin/upload_data/FINAL  leg  list  19_01_2010 to  agar  (Merged data in
> > one).xls
> > 
> > i as able to add other files with space using the following command :
> >  svn st |grep ? |cut -c8- |sed 's/ /\\ /g' |xargs svn add
> > 
> > however there are some special characters like ( ) +#@  that svn cannot
> > understand as the full path of  the file .
> > 
> > can some one help me in this in perl or in shell .
> 
> If in perl, then you may want to pass the arguments to the system
> command as an array, so:
> 
>   @arg = [ "svn", "add", "File with spaces" ];
>   system( @arg );

1. [...] is an anonymous array reference. In ordere to initialise arrays you 
want ( ... ).

2. You should declare @arg (preferably called @args) using my:

        my @args = ("svn", "add", "File with spaces");

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Parody of "The Fountainhead" - http://shlom.in/towtf

Chuck Norris can make the statement "This statement is false" a true one.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to