[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: copying multiple files
From: David Henderson <dhenderson () digital-pipe ! com>
Date: 2016-11-22 15:57:51
Message-ID: CAF-YAQwQ-dz-bhUdPa1=eSw7TQ_FwmkCQ+FB1NBZ8JVyrrkJBA () mail ! gmail ! com
[Download RAW message or body]
Several other great recommendations! Thanks to you all - I should
have more than enough to figure out an appropriate solution!
Dave
On 11/22/16, Cathey, Jim <jcathey@ciena.com> wrote:
>>I want to make this the shortest command possible is because I don't want
>> to add 60 lines of code to a script just to copy
>>10 files (with error control and so forth).
>
> This sounds like an excellent opportunity to make a function,
> or to feed an embedded pipe with a list...
>
> while read f; do
> cp -f $f dest || error oops
> done <<EOF
> file/path/1
> file/path/2
> ...
> EOF
>
> That sort of thing. There are many ways to skin that kitty.
>
> -- Jim
>
>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic