>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
On 2016-11-22, David Henderson wrote:
> Good morning Jim, thanks for your help as well! After talking with
> Grant yesterday it dawned on me that this must be a bash-ism.
Yep. It's a C-shell-ism that was adopted by bash.
d of atomic operation. Are you
> after a fewest-line-count award?
>
> -- Jim
>
> -Original Message-
> From: busybox [mailto:busybox-boun...@busybox.net] On Behalf Of David
> Henderson
> Sent: Monday, November 21, 2016 2:07 PM
> To: Grant Edwards
> Cc: busyb
kind of atomic operation. Are you
after a fewest-line-count award?
-- Jim
-Original Message-
From: busybox [mailto:busybox-boun...@busybox.net] On Behalf Of David Henderson
Sent: Monday, November 21, 2016 2:07 PM
To: Grant Edwards
Cc: busybox@busybox.net
Subject: Re: copying multiple
David Henderson wrote:
Good afternoon. I have several files in two different directories
that I'm trying to copy in a destination using:
cp -f /tmp/test/{a.txt,b.txt,c.txt} /tmp/test2/{1.txt,2.txt,3.txt} /tmp/dest
This keeps failing. Is this implemented in BB?
In general, and here in
Thanks again for your continued help Grant. Unfortunately the file
names are not actually similar as in the example (e.g. help.txt,
world.png, ...) so using braces won't help either. Any other
thoughts? Currently I'm forced to use a combination of find and cp -
ugh - just to reduce the number
On 2016-11-21, David Henderson wrote:
> On 11/21/16, Grant Edwards wrote:
>> On 2016-11-21, David Henderson wrote:
>>
>>> cp -f /tmp/test/{a.txt,b.txt,c.txt} /tmp/test2/{1.txt,2.txt,3.txt} /tmp/dest
>>
>>> This
Hey Grant, thanks for the reply! Unfortunately that command will just
echo what you type to the screen, not actually copy anything. Any
other thoughts?
Thanks,
Dave
On 11/21/16, Grant Edwards wrote:
> On 2016-11-21, David Henderson
On 2016-11-21, David Henderson wrote:
> Good afternoon. I have several files in two different directories
> that I'm trying to copy in a destination using:
>
> cp -f /tmp/test/{a.txt,b.txt,c.txt} /tmp/test2/{1.txt,2.txt,3.txt} /tmp/dest
>
> This keeps failing. Is
Good afternoon. I have several files in two different directories
that I'm trying to copy in a destination using:
cp -f /tmp/test/{a.txt,b.txt,c.txt} /tmp/test2/{1.txt,2.txt,3.txt} /tmp/dest
This keeps failing. Is this implemented in BB?
Thanks,
Dave
10 matches
Mail list logo