Request: Generate random data based on template

N

norry

Hi,

I was wondering if anyone has knows if the following freeware application
exists.

1) Can generate x number of text files based on templates.
2) Those files would all have unique contents based on say a random
generated string or a csv list for example.

For example

The application would read in say a template of a file to duplicate. This
file might contain a number of variables. For each variable the application
would replace the string with either a random generated string/number etc,
or use a look up list (csv file for example) to populate this field.

I've looked long and hard and so far come up with nothing that does the
above.

Many thanks
 
J

jo

norry said:
Hi,

I was wondering if anyone has knows if the following freeware application
exists.

1) Can generate x number of text files based on templates.
2) Those files would all have unique contents based on say a random
generated string or a csv list for example.

For example

The application would read in say a template of a file to duplicate. This
file might contain a number of variables. For each variable the application
would replace the string with either a random generated string/number etc,
or use a look up list (csv file for example) to populate this field.

I've looked long and hard and so far come up with nothing that does the
above.

Sounds like you should be searching under 'spamming tools'. ;-)
 
N

norry

Actually that might not be such a bad idea :)

What I need it for it to produce a lot of test data for an application i'm
testing. Copy and Paste would work but might take all year!
 
W

wald

norry said:
I was wondering if anyone has knows if the following freeware
application exists.

1) Can generate x number of text files based on templates.
2) Those files would all have unique contents based on say a
random generated string or a csv list for example.

...

I've looked long and hard and so far come up with nothing that
does the above.

This is one of those requests that can perfectly be solved with
some scripting. I would suggest you have a look at Python:

http://www.python.org/

It's fairly easy to code something that does what you want, and
you will learn a very good scripting language in the process...

A good tutorial for starting out would be:

http://www.python.g2swaroop.net/byte/

Regards,
Wald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top