X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.6 required=5.0	tests=AWL,BAYES_50,SARE_HELO_EQ_CUST,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: David <dbj@vip.cybercity.dk>
Subject: Re: cp: omitting directory, for copying only files, sed
Date: Sat, 06 Nov 2010 15:54:25 +0100
Lines: 23
Message-ID: <ib3q6r$611$1@dough.gmane.org>
References: <ib3gtb$v4$1@dough.gmane.org> <6488B010-E946-4EA3-BE77-586ACD794EEB@edgar-matzinger.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; da; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1
In-Reply-To: <6488B010-E946-4EA3-BE77-586ACD794EEB@edgar-matzinger.nl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi Edgar
So you think it should be a missing newline?
I don't think that is the case, because the cp operations happens as 
they should. Further more I have tried adding the newline with a \n , 
and it doesn't help.
Regards David

> #!/bin/sh
> W="\/Users\/edgarm\/tmp\/$1\/."
> echo $W
> sed -n 's/^File[ ]*\([^ ][^ ]*\).*/\"\1\" '"$W"'/p' < $2 | xargs echo X:
>
> And this is the output...
>
> tmp$ ./cptest1 test list.txt
> \/Users\/edgarm\/tmp\/test\/.
> X: ..\test\file1.txt /Users/edgarm/tmp/test/. ..\test\file2.txt
> /Users/edgarm/tmp/test/.
>
> See the problem?
>
> Regards, Edgar Matzinger.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

