From: millerb@pt9534.ped.pto.ford.com (Bryan Miller)
Cc: millerb@acm.org
Subject: How to get around the arg length in cp and ls
Date: 1995/05/26 [thread overview]
Message-ID: <3q5dh0$oia@pt9201.ped.pto.ford.com> (raw)
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 |
next reply other threads:[~1995-05-26 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-05-26 4:00 Bryan Miller [this message]
1995-05-26 4:00 ` How to get around the arg length in cp and ls Bryan Miller
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox