* How to get around the arg length in cp and ls
@ 1995-05-26 4:00 Bryan Miller
1995-05-26 4:00 ` Bryan Miller
0 siblings, 1 reply; 2+ messages in thread
From: Bryan Miller @ 1995-05-26 4:00 UTC (permalink / raw)
Cc: millerb
I'm trying to copy files from a remote NFS mounted dir
to another using cp <pathname>/*.* . and it fails because
there are to many files to expand the command out. I then
attempted something like:
--------------------------------------------------
ls /eee1/millerb_cc/cms/$LIB/*.* > $HOME/.temp.list
while read filename; do
cp $filename .
rm $filename
done < $HOME/.temp.list
rm $HOME/.temp.list
--------------------------------------------------
Now, of course, ls is failing due to arg length too long:
import[37]: /usr/ucb/ls: arg list too long
Any clever workarounds anyone?
--
----------------------------------------------------------
Bryan Miller |
Powertrain Electronics |
Control Systems Software| "Nil Sine Numine"
millerb@ped.ford.com |
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to get around the arg length in cp and ls
1995-05-26 4:00 How to get around the arg length in cp and ls Bryan Miller
@ 1995-05-26 4:00 ` Bryan Miller
0 siblings, 0 replies; 2+ messages in thread
From: Bryan Miller @ 1995-05-26 4:00 UTC (permalink / raw)
Bryan Miller (millerb@pt9534.ped.pto.ford.com) appears to have written:
>I'm trying to copy files from a remote NFS mounted dir
>to another using cp <pathname>/*.* . and it fails because
>there are to many files to expand the command out. I then
>attempted something like:
>--------------------------------------------------
>ls /eee1/millerb_cc/cms/$LIB/*.* > $HOME/.temp.list
Ooops. Probably just need to omit the *.*. Too much
coffee....
cheers
----------------------------------------------------------
Bryan Miller |
Powertrain Electronics |
Control Systems Software| "Nil Sine Numine"
millerb@ped.ford.com |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-05-26 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-26 4:00 How to get around the arg length in cp and ls Bryan Miller
1995-05-26 4:00 ` Bryan Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox