cp: omitting directory, for copying only files, sed
David
dbj@vip.cybercity.dk
Sat Nov 6 14:54:00 GMT 2010
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
More information about the Cygwin
mailing list