On May 14, 2009, at 13:38:42, Salvatore Insalaco wrote:

On Thu, May 14, 2009 at 6:53 PM, Eric Kow <[email protected]> wrote:
It'd be nice if we could make just one last push to get rid of these.
Ideas?

I tried to substitute the 1mb file generation with something like that:

while true; do echo -n "a"; done | head -c 1048000

but it is really really slow :).


# Create a file with 1 byte
echo -n a > file
# Quadruple the file size 10 times
for i in 1 2 3 4 5 6 7 8 9 10; do
    cat file file file file > file2
    mv file2 file
done

# The Unix classic for creating a file with all zeros
dd if=/dev/zero of=file bs=1k count=1024

-erik

--
Erik Schnetter <[email protected]>   http://www.cct.lsu.edu/~eschnett/

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from <http://pgp.mit.edu>.



Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to