Bash Scripts - File generating

Forgive the daft requests - I'm still a learner :smiley:

I need a script so that I can test another script (I'm confused already) The script I am looking for should generate a new file in the same directory (called newfile1 or what ever) and also generate text within the new file (Hello world? What ever!)

Does anyone have such a script to hand?

Cheers
Jamie

You can do something like that :

# Create file
cat <<EOD_CAT > newfile1
Hello world? 
What ever!
EOD_CAT

# Execute scipt to be tested
/path/to/script

Jean-Pierre.