Re: parameter list too long

From: Sven Mascheck (cus.x.mascheck_at_spamgourmet.com)
Date: 11/13/03


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.)



Relevant Pages

  • Re: parameter list too long
    ... ...no, for the kernel,. ... for filename in *.xml ... (Bourne shells only have the virtual memory limit here.) ...
    (comp.unix.shell)
  • Re: UTF-8 practically vs. theoretically in the VFS API (was: Re:
    ... |>> I have never claimed that the kernel really talk s UTF-8, and indeed, I ... UTF-8 would also be a good base. ... | encoding, right at the time when such infrastructure is likely to be created. ... as there is no way to find out what encoding the filename is in. ...
    (Linux-Kernel)
  • Re: Unparsed Interchange
    ... But anything after that won´t work anymore (no xml validation, ... but have you tried setting your stream position ... // Get the original filename ... string filename = inmsg.Context.Read("ReceivedFileName", ...
    (microsoft.public.biztalk.general)
  • Re: Unparsed Interchange
    ... But anything after that won´t work anymore (no xml validation, ... but have you tried setting your stream position ... // Get the original filename ... string filename = inmsg.Context.Read("ReceivedFileName", ...
    (microsoft.public.biztalk.general)
  • Re: "Next Generation" kernel configuration?
    ... >> You can have my simple flat file kernel config when you pry it from ... All my experiences with the linux visual kernel ... Wasn't even thinking XML. ...
    (freebsd-hackers)