Re: parameter list too long
From: Sven Mascheck (cus.x.mascheck_at_spamgourmet.com)
Date: 11/13/03
- Next message: Michael Puchalek: "NIM oslevel_r attribute for a SPOT resource"
- Previous message: Ulrich--nO--(dot)-sPAM--Link: "Re: Moving rootvg drive failed?"
- In reply to: jp: "parameter list too long"
- Next in thread: Michael Paoli: "Re: parameter list too long"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 13 Nov 2003 22:27:51 +0100 (CET)
In comp.unix.shell, jp wrote:
> I am trying to copy over 30,000 XML files [...]
> This is too many bytes for the shell [...]
...no, for the kernel, <http://www.in-ulm.de/~mascheck/various/argmax/>.
> for filename in `ls`
> do
> if [ $filename = *.xml ]
> then
> echo "Doing cp to $filename"
> cp $filename /download
> fi
> done
Apart from find(1) mentioned in this thread,
for filename in *.xml
do
cp $filename /download
done
(Bourne shells only have the virtual memory limit here.)
- Next message: Michael Puchalek: "NIM oslevel_r attribute for a SPOT resource"
- Previous message: Ulrich--nO--(dot)-sPAM--Link: "Re: Moving rootvg drive failed?"
- In reply to: jp: "parameter list too long"
- Next in thread: Michael Paoli: "Re: parameter list too long"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|