copying multiple files
David Henderson
dhenderson at digital-pipe.com
Tue Nov 22 15:57:51 UTC 2016
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 at 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
>
>
More information about the busybox
mailing list